转CSDN_J小白Y:https://blog.csdn.net/Jarry_cm/article/details/99683788
1.DataFrame.iterrows()
返回{索引,Series}对
2.DataFrame.itertuples()
每一行迭代为元组,可以通过row['cols']对元素进行访问
3.DataFrame.iteritems()
每一列迭代为(列名, Series)对
侵删
转CSDN_J小白Y:https://blog.csdn.net/Jarry_cm/article/details/99683788
返回{索引,Series}对
每一行迭代为元组,可以通过row['cols']对元素进行访问
每一列迭代为(列名, Series)对
侵删