#itertuples

iterrows(), iteritems(), itertuples()对dataframe进行遍历

 iterrows(): 将DataFrame迭代为(insex,Series)对。itertuples():将DataFrame迭代为元祖。iteritems(): 将DataFrame迭代为(列名,Series)对 现有如下DataFrame数据:importpandasas...