Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6f0a313

Browse files
authored
Merge pull request #16381 from meeseeksmachine/auto-backport-of-pr-16379-on-v2.2.x
Backport PR #16379 on branch v2.2.x (FIX: catch on message content, not module)
2 parents d0cdf97 + 1652994 commit 6f0a313

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

lib/matplotlib/cbook/__init__.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2081,9 +2081,10 @@ def _check_1d(x):
20812081
# This code should correctly identify and coerce to a
20822082
# numpy array all pandas versions.
20832083
with warnings.catch_warnings(record=True) as w:
2084-
warnings.filterwarnings("always",
2085-
category=DeprecationWarning,
2086-
module='pandas[.*]')
2084+
warnings.filterwarnings(
2085+
"always",
2086+
category=DeprecationWarning,
2087+
message='Support for multi-dimensional indexing')
20872088

20882089
ndim = x[:, None].ndim
20892090
# we have definitely hit a pandas index or series object

0 commit comments

Comments
 (0)