Skip to content

Commit 24dd40e

Browse files
DOC: fix RT03, ES01 for pandas.core.resample.Resampler.ffill
1 parent 2419343 commit 24dd40e

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

ci/code_checks.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
164164
-i "pandas.core.groupby.SeriesGroupBy.plot PR02" \
165165
-i "pandas.core.groupby.SeriesGroupBy.sem SA01" \
166166
-i "pandas.core.resample.Resampler.__iter__ RT03,SA01" \
167-
-i "pandas.core.resample.Resampler.ffill RT03" \
168167
-i "pandas.core.resample.Resampler.get_group RT03,SA01" \
169168
-i "pandas.core.resample.Resampler.groups SA01" \
170169
-i "pandas.core.resample.Resampler.indices SA01" \

pandas/core/resample.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -529,14 +529,20 @@ def ffill(self, limit: int | None = None):
529529
"""
530530
Forward fill the values.
531531
532+
This method fills missing values by propagating the last valid
533+
observation forward, up to the next valid observation. It is commonly
534+
used in time series analysis when resampling data to a higher frequency
535+
(upsampling) and filling gaps in the resampled output.
536+
532537
Parameters
533538
----------
534539
limit : int, optional
535540
Limit of how many values to fill.
536541
537542
Returns
538543
-------
539-
An upsampled Series.
544+
Series
545+
The resampled data with missing values filled forward.
540546
541547
See Also
542548
--------

0 commit comments

Comments
 (0)