通过迭代iterrows
问题描述:
答
iterrows返回一个元组。由[1]索引的元素包含该行。然后您可以遍历该元素。
for row in x.iterrows():
print(row[1])
for b in row[1]:
print(b)