conll-df icon indicating copy to clipboard operation
conll-df copied to clipboard

ValueError after Anaconda (Jupiter) update

Open o-kk opened this issue 7 years ago • 2 comments

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

o-kk avatar Sep 22 '18 12:09 o-kk

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

interrogator avatar Sep 22 '18 12:09 interrogator

Thank you so much!

o-kk avatar Sep 22 '18 13:09 o-kk