Skip to content

Commit e9b8530

Browse files
committed
Merge branch 'main' into Issue#59147
2 parents ece2f7b + dcb5494 commit e9b8530

File tree

5 files changed

+30
-5
lines changed

5 files changed

+30
-5
lines changed

ci/code_checks.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
249249
-i "pandas.Timestamp.resolution PR02" \
250250
-i "pandas.Timestamp.second GL08" \
251251
-i "pandas.Timestamp.strptime PR01,SA01" \
252-
-i "pandas.Timestamp.time SA01" \
253252
-i "pandas.Timestamp.timestamp SA01" \
254253
-i "pandas.Timestamp.timetuple SA01" \
255254
-i "pandas.Timestamp.timetz SA01" \

pandas/_libs/tslibs/nattype.pyx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -633,6 +633,16 @@ class NaTType(_NaT):
633633
"""
634634
Return time object with same time but with tzinfo=None.
635635
636+
This method extracts the time part of the `Timestamp` object, excluding any
637+
timezone information. It returns a `datetime.time` object which only represents
638+
the time (hours, minutes, seconds, and microseconds).
639+
640+
See Also
641+
--------
642+
Timestamp.date : Return date object with same year, month and day.
643+
Timestamp.tz_convert : Convert timezone-aware Timestamp to another time zone.
644+
Timestamp.tz_localize : Localize the Timestamp to a timezone.
645+
636646
Examples
637647
--------
638648
>>> ts = pd.Timestamp('2023-01-01 10:00:00')

pandas/_libs/tslibs/timestamps.pyx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1778,6 +1778,16 @@ class Timestamp(_Timestamp):
17781778
"""
17791779
Return time object with same time but with tzinfo=None.
17801780
1781+
This method extracts the time part of the `Timestamp` object, excluding any
1782+
timezone information. It returns a `datetime.time` object which only represents
1783+
the time (hours, minutes, seconds, and microseconds).
1784+
1785+
See Also
1786+
--------
1787+
Timestamp.date : Return date object with same year, month and day.
1788+
Timestamp.tz_convert : Convert timezone-aware Timestamp to another time zone.
1789+
Timestamp.tz_localize : Localize the Timestamp to a timezone.
1790+
17811791
Examples
17821792
--------
17831793
>>> ts = pd.Timestamp('2023-01-01 10:00:00')

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)