Skip to content

Commit b287e97

Browse files
Daniel Saxtonjreback
Daniel Saxton
authored andcommitted
DOC: Improve DataFrame.align docstring (#24631)
1 parent dc703ce commit b287e97

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

pandas/core/generic.py

+10-1
Original file line numberDiff line numberDiff line change
@@ -8345,8 +8345,17 @@ def ranker(data):
83458345
fill_value : scalar, default np.NaN
83468346
Value to use for missing values. Defaults to NaN, but can be any
83478347
"compatible" value
8348-
method : str, default None
8348+
method : {'backfill', 'bfill', 'pad', 'ffill', None}, default None
8349+
Method to use for filling holes in reindexed Series
8350+
pad / ffill: propagate last valid observation forward to next valid
8351+
backfill / bfill: use NEXT valid observation to fill gap
83498352
limit : int, default None
8353+
If method is specified, this is the maximum number of consecutive
8354+
NaN values to forward/backward fill. In other words, if there is
8355+
a gap with more than this number of consecutive NaNs, it will only
8356+
be partially filled. If method is not specified, this is the
8357+
maximum number of entries along the entire axis where NaNs will be
8358+
filled. Must be greater than 0 if not None.
83508359
fill_axis : %(axes_single_arg)s, default 0
83518360
Filling axis, method and limit
83528361
broadcast_axis : %(axes_single_arg)s, default None

0 commit comments

Comments
 (0)