Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ValueError after Anaconda (Jupiter) update #2

Open
o-kk opened this issue Sep 22, 2018 · 2 comments
Open

ValueError after Anaconda (Jupiter) update #2

o-kk opened this issue Sep 22, 2018 · 2 comments

Comments

@o-kk
Copy link

o-kk commented Sep 22, 2018

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 :(

@interrogator
Copy link
Owner

Hey, seems a few people are using this, I'm gonna try fix today.

@o-kk
Copy link
Author

o-kk commented Sep 22, 2018

Thank you so much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants