I just moved to a new MacBook Pro, installed python 3.8 and pip installed the packages I had in old MBP. I was running python 3.6 in old MBP. I am now getting an error in a python script and I believe the only difference is python 3.8 (instead of python 3.6)
error is ... KeyError(f"None of [{key}] are in the [{axis_name}]")
The last line in code below to define the plot is the one that is being called out for the error. Attached screenshot shows the output of the print statements and the error.
Any help is appreciated as I'm running into a wall now. TIA.
print("Index")
print(df_transpose_deaths.index)
print("Columns")
print(df_transpose_deaths.columns)
print("df transpose deaths")
print(df_transpose_deaths)
xindex = df_transpose_deaths.index
ycolumns = df_transpose_deaths.columns
deaths_world_plot = df_transpose_deaths.plot(x = xindex, y = ycolumns, kind='line', xticks=x_ticks, legend=False)