for row in df.itertuples():
# now_name 为列名
print(getattr(row, 'now_name'))
遍历pandas DataFrame的方法
最新推荐文章于 2024-05-12 17:56:18 发布
for row in df.itertuples():
# now_name 为列名
print(getattr(row, 'now_name'))