Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit1652994

Browse files
story645meeseeksmachine
authored andcommitted
Backport PR#16379: FIX: catch on message content, not module
1 parentd0cdf97 commit1652994

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
withwarnings.catch_warnings(record=True)asw:
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)

[8]ページ先頭

©2009-2025 Movatter.jp