iterrows() 函数对dataframe进行遍历

for循环遍历dataframe,返回有一个元祖类型,第一个是行的索引,第二个是series,是每一行的内容。

 

原文地址:https://www.cnblogs.com/bafenqingnian/p/10191581.html