检查Pandas的最后一排数据框错误()

2024-06-16 10:37:51 发布

您现在位置:Python中文网/ 问答频道 /正文

如何检查Python pandas中的最后一行df.ITEROWS公司()在迭代过程中?在

我的代码:

for index, row in df.iterrows():
...     # I want to check last row in df iterrows(). somelike row[0].tail(1)

Tags: to代码inpandasdfforindex过程