Need to count repeating, consecutive values in python dataframe within a groupby

前端 未结 0 1337
感情败类
感情败类 2020-12-12 03:47
df = pd.DataFrame({\'site\':[1,1,1,1,1,1,1,1,1,1],\'parm\':[8,8,8,8,8,9,9,9,9,9],\'date\':[1,2,3,4,5,1,2,3,4,5],\'obs\':[1,1,2,3,3,3,5,5,6,6]})

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