Skip to content

ValueError after Anaconda (Jupiter) update #2

@o-kk

Description

@o-kk

I have a problem with the package after last Anaconda update. There is an error in
_add_governors_to_df(df) 70 dfg = dfg[['w', 'l', 'p', 'f']] 71 dfg['i'] = i ---> 72 dfg = dfg.set_index('i', append=True) 73 dfg.index.names = ['file', 's', 'g', 'i'] 74 dfg = dfg.reset_index('g', drop=True)

FutureWarning:
Passing list-likes to .loc or [] with any missing label will raise
KeyError in the future, you can use .reindex() as an alternative. See the documentation here:
https://pandas.pydata.org/pandas-docs/stable/indexing.html#deprecate-loc-reindex-listlike
dfg = df.loc[dfg.index]

ValueError: Duplicated level name: "i", assigned to level 3, is already used for level 2.

Please, help. Unfortunately, I'm not such a skilled programmer to fix it myself :(

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions