reset index and plot with column name pandas code example Example: reset index pandas df.reset_index(drop=True)