NTNU-IndEcol / BuildME

6 stars 1 forks source link

Pandas FutureWarning: Indexing on a MultiIndex with a nested sequence #63

Closed nheeren closed 2 years ago

nheeren commented 2 years ago

Using Pandas 1.4.1 I get the following warning:

BuildME/BuildME/simulate.py:130: FutureWarning: The behavior of indexing on a MultiIndex with a nested sequence of labels is deprecated and will change in a future version. series.loc[label, sequence] will raise if any members of 'sequence' or not present in the index's second level. To retain the old behavior, use series.index.isin(sequence, level=1) xls_values2 = mmv_en_replace.loc(axis=0)[[res[1]], [res[2]]]