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:
test.head()
As an extension of in code veritas's answer... instead of doing del at the end:
del
test = test.reset_index() del test['index']
You can set drop to True.
True
test = test.reset_index(drop=True)