I'm trying to "refresh" the indices of my DataFrame. I'm trying:
df3 = df2.reindex()
df3.head()
But this still gives me:
Dose
13539.0 1.0
13539.0 2.0
13539.0 5.0
13539.0 3.0
13539.0 4.0
I need to keep the "Dose" column in the same order, but make its indices 0 -> len(Dose).
In other words, my desired output is:
Dose
0 1.0
1 2.0
2 5.0
3 3.0
4 4.0
Clearly I've pre-processed something to mess this up, but I'd appreciate any insight as to how I can amend it :-)