Use Pandas 2.0
Created by: Zaharid
I tried updating to pandas 2.0. So far I have seen an error here:
Prescient docstring.
def set_actual_column_level0(df, new_levels):
"""Set the first level of the index to new_levels. Note:
This is a separate function mostly because it breaks
in every patch update of pandas."""
cols = df.columns
> cols.set_levels(new_levels, inplace=True, level=0)
E TypeError: MultiIndex.set_levels() got an unexpected keyword argument 'inplace'