Skip to content

Commit 8d8ed22

Browse files
SongYeongEngpmhatre1
authored andcommitted
DOC: shift() of boolean series gives drawdown by an order of magnitude with default filling np.NaN comparing with filling by bool like False (pandas-dev#58588)
Documentation fix in `generic.py` line 11715: For numeric data, ``np.nan`` is used. ->For Boolean and numeric NumPy data types, ``np.nan`` is used.
1 parent 4cd7306 commit 8d8ed22

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/core/generic.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -10052,7 +10052,7 @@ def shift(
1005210052
fill_value : object, optional
1005310053
The scalar value to use for newly introduced missing values.
1005410054
the default depends on the dtype of `self`.
10055-
For numeric data, ``np.nan`` is used.
10055+
For Boolean and numeric NumPy data types, ``np.nan`` is used.
1005610056
For datetime, timedelta, or period data, etc. :attr:`NaT` is used.
1005710057
For extension dtypes, ``self.dtype.na_value`` is used.
1005810058
suffix : str, optional

0 commit comments

Comments
 (0)