From 5f01d0983dd565f3012ffdf7e3c993ac0bf5a43a Mon Sep 17 00:00:00 2001 From: Homura Date: Mon, 6 May 2024 17:33:30 +0800 Subject: [PATCH] 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. --- pandas/core/generic.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandas/core/generic.py b/pandas/core/generic.py index 20d8bd3bda21f..d397155f547e7 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -10052,7 +10052,7 @@ def shift( fill_value : object, optional The scalar value to use for newly introduced missing values. the default depends on the dtype of `self`. - For numeric data, ``np.nan`` is used. + For Boolean and numeric NumPy data types, ``np.nan`` is used. For datetime, timedelta, or period data, etc. :attr:`NaT` is used. For extension dtypes, ``self.dtype.na_value`` is used. suffix : str, optional