Warning: This method has serious potential side effects and should probably not be used – see comments!
Try the following:
df = df.T.reset_index(drop=True).T
Warning: This method has serious potential side effects and should probably not be used – see comments!
Try the following:
df = df.T.reset_index(drop=True).T