Pandas: loop through rows and check if row is the same as previous row

前端 未结 0 1464
[愿得一人]
[愿得一人] 2021-01-24 22:26

I have this dataframe:

data={\'col1\':[1,3,3,1,2,3,2,2]}
df=pd.DataFrame(data,columns=[\'col1\'])

I want to loop through it, and do something if

相关标签:
回答
  • 消灭零回复
提交回复
热议问题