Skip to content

Commit 7ae5f79

Browse files
GH1654 Add min_periods for DataFrame.corrwith
1 parent 1b3c8b5 commit 7ae5f79

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

pandas-stubs/core/frame.pyi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1605,6 +1605,7 @@ class DataFrame(NDFrame, OpsMixin, _GetItemHack):
16051605
drop: _bool = False,
16061606
method: Literal["pearson", "kendall", "spearman"] = "pearson",
16071607
numeric_only: _bool = False,
1608+
min_periods: int | None = None,
16081609
) -> Series: ...
16091610
def count(self, axis: Axis = 0, numeric_only: _bool = False) -> Series[int]: ...
16101611
def nunique(self, axis: Axis = 0, dropna: bool = True) -> Series[int]: ...

tests/series/test_series.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3041,4 +3041,4 @@ def test_map_kwargs() -> None:
30413041
def func(x: int, y: int) -> int:
30423042
return x + y
30433043

3044-
check(assert_type(sr.map(func), "pd.Series[int]"), pd.Series, np.integer)
3044+
check(assert_type(sr.map(func, y=2), "pd.Series[int]"), pd.Series, np.integer)

0 commit comments

Comments
 (0)