We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
In the box plot function, panda's set_categories function is called:
panda
set_categories
pyam/pyam/plotting.py
Line 714 in 525ede9
However, the inplace parameter of the set_categories was removed in pandas >= 2.0 (see pandas_<2, pandas_>=2).
inplace
pandas >= 2.0
This leads to an issue when calling the box plot function with a by parameter when the following if call triggers:
by
Line 710 in 525ede9
A simple fix is to replace the line with: df[by].cat = df[by].cat.set_categories(list(palette)).
df[by].cat = df[by].cat.set_categories(list(palette))
The text was updated successfully, but these errors were encountered:
No branches or pull requests
In the box plot function,
panda
'sset_categories
function is called:pyam/pyam/plotting.py
Line 714 in 525ede9
However, the
inplace
parameter of theset_categories
was removed inpandas >= 2.0
(see pandas_<2, pandas_>=2).This leads to an issue when calling the box plot function with a
by
parameter when the following if call triggers:pyam/pyam/plotting.py
Line 710 in 525ede9
A simple fix is to replace the line with:
df[by].cat = df[by].cat.set_categories(list(palette))
.The text was updated successfully, but these errors were encountered: