From e449457b49926cc0accb9e94daca29c409458e4f Mon Sep 17 00:00:00 2001 From: Patrick Hoefler Date: Mon, 15 Jan 2024 16:27:48 +0000 Subject: [PATCH 1/2] DOC: Add deprecated markers for downcast keyword --- pandas/core/generic.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pandas/core/generic.py b/pandas/core/generic.py index caac11b6ab4f6..ebee8804458a5 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -7208,6 +7208,7 @@ def fillna( or the string 'infer' which will try to downcast to an appropriate equal type (e.g. float64 to int64 if possible). + .. deprecated:: 2.2.0 Returns ------- {klass} or None @@ -7543,6 +7544,7 @@ def ffill( or the string 'infer' which will try to downcast to an appropriate equal type (e.g. float64 to int64 if possible). + .. deprecated:: 2.2.0 Returns ------- {klass} or None @@ -7734,6 +7736,7 @@ def bfill( or the string 'infer' which will try to downcast to an appropriate equal type (e.g. float64 to int64 if possible). + .. deprecated:: 2.2.0 Returns ------- {klass} or None From dccee2f78928c977f7499bd7e589343d3f142e9a Mon Sep 17 00:00:00 2001 From: Patrick Hoefler Date: Mon, 15 Jan 2024 18:04:24 +0000 Subject: [PATCH 2/2] Update docs --- pandas/core/generic.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pandas/core/generic.py b/pandas/core/generic.py index ebee8804458a5..81ffb243cd302 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -7209,6 +7209,7 @@ def fillna( equal type (e.g. float64 to int64 if possible). .. deprecated:: 2.2.0 + Returns ------- {klass} or None @@ -7545,6 +7546,7 @@ def ffill( equal type (e.g. float64 to int64 if possible). .. deprecated:: 2.2.0 + Returns ------- {klass} or None @@ -7737,6 +7739,7 @@ def bfill( equal type (e.g. float64 to int64 if possible). .. deprecated:: 2.2.0 + Returns ------- {klass} or None