I've seen a lot of answers on flattening multi-level index. I just want to remove the very first index column on the left of this multi-index dataframe.
From this:
Attributes Date Close Close
Symbols AMZN ^DJI
0 2020-12-01 3220.08 29823.92
1 2020-11-30 3168.04 29638.64
2 2020-11-27 3195.34 29910.37
3 2020-11-25 3185.07 29872.47
I'm looking for this outcome:
Date Close Close
AMZN ^DJI
2020-12-01 3220.08 29823.92
2020-11-30 3168.04 29638.64
2020-11-27 3195.34 29910.37
2020-11-25 3185.07 29872.47
Is this possible?
df = df.reset_index(drop=True), but an index will still be there of 0,1,2,3,4, etc.''(blank) if that is what you mean: pandas.pydata.org/docs/reference/api/pandas.Index.rename.html