Skip to content

Commit fabc72f

Browse files
sjalkotemroeschke
authored andcommitted
DOC: Remove references to bfill, ffill, pad, and backfill in limit_direction (pandas-dev#57720)
* Remove references to `bfill`, `ffill`, `pad`, `backfill` from `limit_direction` * Add `bfill` and `ffill` to the "See Also" section * Add `bfill` and `ffill` to the "See Also" section Co-authored-by: Matthew Roeschke <[email protected]> --------- Co-authored-by: Matthew Roeschke <[email protected]>
1 parent 7e1829f commit fabc72f

File tree

1 file changed

+2
-14
lines changed

1 file changed

+2
-14
lines changed

pandas/core/resample.py

+2-14
Original file line numberDiff line numberDiff line change
@@ -819,20 +819,6 @@ def interpolate(
819819
limit_direction : {{'forward', 'backward', 'both'}}, Optional
820820
Consecutive NaNs will be filled in this direction.
821821
822-
If limit is specified:
823-
* If 'method' is 'pad' or 'ffill', 'limit_direction' must be 'forward'.
824-
* If 'method' is 'backfill' or 'bfill', 'limit_direction' must be
825-
'backwards'.
826-
827-
If 'limit' is not specified:
828-
* If 'method' is 'backfill' or 'bfill', the default is 'backward'
829-
* else the default is 'forward'
830-
831-
raises ValueError if `limit_direction` is 'forward' or 'both' and
832-
method is 'backfill' or 'bfill'.
833-
raises ValueError if `limit_direction` is 'backward' or 'both' and
834-
method is 'pad' or 'ffill'.
835-
836822
limit_area : {{`None`, 'inside', 'outside'}}, default None
837823
If limit is specified, consecutive NaNs will be filled with this
838824
restriction.
@@ -860,6 +846,8 @@ def interpolate(
860846
core.resample.Resampler.asfreq: Return the values at the new freq,
861847
essentially a reindex.
862848
DataFrame.interpolate: Fill NaN values using an interpolation method.
849+
DataFrame.bfill : Backward fill NaN values in the resampled data.
850+
DataFrame.ffill : Forward fill NaN values.
863851
864852
Notes
865853
-----

0 commit comments

Comments
 (0)