Pandas reset index doesn't seem to work?

前端 未结 4 500
星月不相逢
星月不相逢 2020-12-08 10:52

I\'m not sure where I am astray but I cannot seem to reset the index on a dataframe.

When I run test.head(), I get the output below:

4条回答
  •  感情败类
    2020-12-08 11:06

    BrenBarn's answer works.

    The following also worked via this thread, which isn't a troubleshooting so much as an articulation of how to reset the index:

    test = test.reset_index(drop=True)
    

提交回复
热议问题