Dataframe row shuffling

前端 未结 0 1782
心在旅途
心在旅途 2021-01-30 02:38

I am trying to shuffle rows in a dataframe in-place and reset the index using

df = df.sample(frac=-1).reset_index(drop=True)

But when I do that it tel

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