Skip to content

Commit

Permalink
Clarify documentation for asfreq (#59589)
Browse files Browse the repository at this point in the history
  • Loading branch information
Pranav-Wadhwa authored Aug 23, 2024
1 parent 7bd6ca2 commit 224c6ff
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pandas/core/generic.py
Original file line number Diff line number Diff line change
Expand Up @@ -8452,8 +8452,8 @@ def asfreq(
will map one-to-one to the new index).
Otherwise, the new index will be equivalent to ``pd.date_range(start, end,
freq=freq)`` where ``start`` and ``end`` are, respectively, the first and
last entries in the original index (see :func:`pandas.date_range`). The
freq=freq)`` where ``start`` and ``end`` are, respectively, the min and
max entries in the original index (see :func:`pandas.date_range`). The
values corresponding to any timesteps in the new index which were not present
in the original index will be null (``NaN``), unless a method for filling
such unknowns is provided (see the ``method`` parameter below).
Expand All @@ -8471,7 +8471,7 @@ def asfreq(
does not fill NaNs that already were present):
* 'pad' / 'ffill': propagate last valid observation forward to next
valid
valid based on the order of the index
* 'backfill' / 'bfill': use NEXT valid observation to fill.
how : {{'start', 'end'}}, default end
For PeriodIndex only (see PeriodIndex.asfreq).
Expand Down

0 comments on commit 224c6ff

Please sign in to comment.