Skip to content

Commit 4fdd46b

Browse files
committed
Merge remote-tracking branch 'upstream/main' into ref/reshape/util
2 parents d4546ed + dcb5494 commit 4fdd46b

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

pandas/core/series.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6567,7 +6567,7 @@ def min(
65676567
Returns
65686568
-------
65696569
scalar or Series (if level specified)
6570-
The maximum of the values in the Series.
6570+
The minimum of the values in the Series.
65716571
65726572
See Also
65736573
--------
@@ -6716,7 +6716,7 @@ def sum(
67166716
Returns
67176717
-------
67186718
scalar or Series (if level specified)
6719-
Median of the values for the requested axis.
6719+
Sum of the values for the requested axis.
67206720
67216721
See Also
67226722
--------
@@ -6826,7 +6826,7 @@ def mean(
68266826
Returns
68276827
-------
68286828
scalar or Series (if level specified)
6829-
Median of the values for the requested axis.
6829+
Mean of the values for the requested axis.
68306830
68316831
See Also
68326832
--------

pandas/plotting/_matplotlib/core.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -893,7 +893,13 @@ def _make_legend(self) -> None:
893893
elif self.subplots and self.legend:
894894
for ax in self.axes:
895895
if ax.get_visible():
896-
ax.legend(loc="best")
896+
with warnings.catch_warnings():
897+
warnings.filterwarnings(
898+
"ignore",
899+
"No artists with labels found to put in legend.",
900+
UserWarning,
901+
)
902+
ax.legend(loc="best")
897903

898904
@final
899905
@staticmethod

0 commit comments

Comments
 (0)