[Tips] pandas逐行遍历 遍历DataFrame的行,对于每一行,都希望能够通过列名访问对应的元素。 for index, row in df.iterrows(): print row["c1"], row["c2"]