Skip to content

Commit 09b42d2

Browse files
authored
DOC: correctly format bullets in parameter descriptions for fillna methods (#49529)
1 parent 86b9628 commit 09b42d2

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

pandas/core/arrays/base.py

+5-3
Original file line numberDiff line numberDiff line change
@@ -758,9 +758,11 @@ def fillna(
758758
Alternatively, an array-like 'value' can be given. It's expected
759759
that the array-like have the same length as 'self'.
760760
method : {'backfill', 'bfill', 'pad', 'ffill', None}, default None
761-
Method to use for filling holes in reindexed Series
762-
pad / ffill: propagate last valid observation forward to next valid
763-
backfill / bfill: use NEXT valid observation to fill gap.
761+
Method to use for filling holes in reindexed Series:
762+
763+
* pad / ffill: propagate last valid observation forward to next valid.
764+
* backfill / bfill: use NEXT valid observation to fill gap.
765+
764766
limit : int, default None
765767
If method is specified, this is the maximum number of consecutive
766768
NaN values to forward/backward fill. In other words, if there is

pandas/core/generic.py

+5-3
Original file line numberDiff line numberDiff line change
@@ -6622,9 +6622,11 @@ def fillna(
66226622
in the dict/Series/DataFrame will not be filled. This value cannot
66236623
be a list.
66246624
method : {{'backfill', 'bfill', 'ffill', None}}, default None
6625-
Method to use for filling holes in reindexed Series
6626-
ffill: propagate last valid observation forward to next valid
6627-
backfill / bfill: use next valid observation to fill gap.
6625+
Method to use for filling holes in reindexed Series:
6626+
6627+
* ffill: propagate last valid observation forward to next valid.
6628+
* backfill / bfill: use next valid observation to fill gap.
6629+
66286630
axis : {axes_single_arg}
66296631
Axis along which to fill missing values. For `Series`
66306632
this parameter is unused and defaults to 0.

0 commit comments

Comments
 (0)