Python Removing rows based on consecutive value of another column within group

后端 未结 0 1920
南旧
南旧 2020-12-14 21:24

I have the following two-index (id and year) dataframe:

mux = pd.MultiIndex.from_arrays([[0,0,0,0,0,1,1,1,1,2,2,2,2,2,2], [1990,1991,1992,1993,1994,1991,1992,         


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