Skip to content

Commit fbf2d11

Browse files
committed
Merge cleanup
1 parent 9254a10 commit fbf2d11

File tree

2 files changed

+16
-5
lines changed

2 files changed

+16
-5
lines changed

pandas/core/series.py

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4651,7 +4651,7 @@ def rename(
46514651
inplace: Literal[True],
46524652
level: Level | None = ...,
46534653
errors: IgnoreRaise = ...,
4654-
) -> Series | None: ...
4654+
) -> None: ...
46554655

46564656
@overload
46574657
def rename(
@@ -4665,6 +4665,18 @@ def rename(
46654665
errors: IgnoreRaise = ...,
46664666
) -> Series: ...
46674667

4668+
@overload
4669+
def rename(
4670+
self,
4671+
index: Renamer | Hashable | None = ...,
4672+
*,
4673+
axis: Axis | None = ...,
4674+
copy: bool | lib.NoDefault = ...,
4675+
inplace: bool = ...,
4676+
level: Level | None = ...,
4677+
errors: IgnoreRaise = ...,
4678+
) -> Series | None: ...
4679+
46684680
def rename(
46694681
self,
46704682
index: Renamer | Hashable | None = None,
@@ -4722,9 +4734,8 @@ def rename(
47224734
47234735
Returns
47244736
-------
4725-
Series
4726-
A shallow copy with index labels or name altered, or the same object
4727-
if ``inplace=True`` and index is not a dict or callable else None.
4737+
Series or None
4738+
Series with index labels or name altered or None if ``inplace=True``.
47284739
47294740
See Also
47304741
--------

pandas/tests/groupby/test_reductions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -961,7 +961,7 @@ def test_min_empty_string_dtype(func, string_dtype_no_object):
961961
def test_string_dtype_all_na(
962962
string_dtype_no_object, reduction_func, skipna, min_count, test_series
963963
):
964-
# https://github.com/pandas-dev/pandas/issues/60229
964+
# https://github.com/pandas-dev/pandas/issues/60985
965965
if reduction_func == "corrwith":
966966
# corrwith is deprecated.
967967
return

0 commit comments

Comments
 (0)