after doing unstack how to reset index in python pandas code example Example: reset index pandas df.reset_index(drop=True)