add row to dataframe pandas

后端 未结 0 1625
旧巷少年郎
旧巷少年郎 2020-12-29 17:49

I want to add a median row to the top. Based on this stack answer I do the following:

pd.concat([df.median(),df],axis=0, ignore_index=True)

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