From aed2e3e42abedf60a2ce2781ddbffa6ae787d19b Mon Sep 17 00:00:00 2001 From: Noritada Kobayashi Date: Sat, 5 Nov 2022 02:55:08 +0900 Subject: [PATCH] DOC: correctly format bullets in parameter descriptions for `fillna` methods --- pandas/core/arrays/base.py | 8 +++++--- pandas/core/generic.py | 8 +++++--- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/pandas/core/arrays/base.py b/pandas/core/arrays/base.py index cc9b2ce3fed42..050af9e90a177 100644 --- a/pandas/core/arrays/base.py +++ b/pandas/core/arrays/base.py @@ -780,9 +780,11 @@ def fillna( Alternatively, an array-like 'value' can be given. It's expected that the array-like have the same length as 'self'. method : {'backfill', 'bfill', 'pad', 'ffill', None}, default None - Method to use for filling holes in reindexed Series - pad / ffill: propagate last valid observation forward to next valid - backfill / bfill: use NEXT valid observation to fill gap. + Method to use for filling holes in reindexed Series: + + * pad / ffill: propagate last valid observation forward to next valid. + * backfill / bfill: use NEXT valid observation to fill gap. + limit : int, default None If method is specified, this is the maximum number of consecutive NaN values to forward/backward fill. In other words, if there is diff --git a/pandas/core/generic.py b/pandas/core/generic.py index c8f30c12d321f..1df1acd9d9983 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -6649,9 +6649,11 @@ def fillna( in the dict/Series/DataFrame will not be filled. This value cannot be a list. method : {{'backfill', 'bfill', 'ffill', None}}, default None - Method to use for filling holes in reindexed Series - ffill: propagate last valid observation forward to next valid - backfill / bfill: use next valid observation to fill gap. + Method to use for filling holes in reindexed Series: + + * ffill: propagate last valid observation forward to next valid. + * backfill / bfill: use next valid observation to fill gap. + axis : {axes_single_arg} Axis along which to fill missing values. For `Series` this parameter is unused and defaults to 0.