Merge rows of a dataframe by adding the values of a row to a row above it if it is below a certain value

前端 未结 0 1624
不知归路
不知归路 2020-12-23 02:23

I have a dataframe say: df = pd.DataFrame(np.random.randint(0, 50, 25).reshape(5, 5))

df =

39  1   3   23  6
19  44  18  23  33
41  19  12  34  41
17           


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