79312206

Date: 2024-12-27 15:45:36
Score: 1
Natty:
Report link

Actually Pandas will use MultiIndexing if you put data downloaded from yahoo finance into a dataframe.

display(df) gives:

df1

To remove the Ticker column multi-index which is not needed, just drop it:

df.columns = df.columns.droplevel(1)

Then you get a regular dataframe and can plot it the way you did it:

plot2

Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
Posted by: rehaqds