Skip to content

Use Pandas 2.0 #1722

@Zaharid

Description

@Zaharid

I tried updating to pandas 2.0. So far I have seen an error here:

def set_actual_column_level0(df, new_levels):

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'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions