I have following pandas dataframe:
| id | LocTime |ZPos | XPos datetime | 2017-01-02 00:14:39
Need assign output back or inplace=True parameter:
inplace=True
df = df.reset_index()
df.reset_index(inplace=True)
print (df) datetime id LocalTime ZPosition XPosition 0 2017-01-02 00:14:39 10453190861 1483312478909238 0 -9 1 2017-01-02 00:14:40 10453191020 1483312479673076 0 -8