Skip to content

TST: Address MPL 3.6 deprecation warnings #48695

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

Merged
merged 4 commits into from
Sep 22, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
missing ()
  • Loading branch information
mroeschke committed Sep 22, 2022
commit 1ff67c4907edecd408bcf74e15c4dd05a5037ae1
2 changes: 1 addition & 1 deletion pandas/io/formats/style.py
Original file line number Diff line number Diff line change
Expand Up @@ -4220,7 +4220,7 @@ def css_calc(x, left: float, right: float, align: str, color: str | list | tuple
from pandas.plotting._matplotlib.compat import mpl_ge_3_6_0

cmap = (
(mpl.colormaps[cmap] if mpl_ge_3_6_0 else mpl.cm.get_cmap(cmap))
(mpl.colormaps[cmap] if mpl_ge_3_6_0() else mpl.cm.get_cmap(cmap))
if isinstance(cmap, str)
else cmap # assumed to be a Colormap instance as documented
)
Expand Down