Skip to content

Commit 43cc0e1

Browse files
committed
Clarify documentation for asfreq
1 parent 0c24b20 commit 43cc0e1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pandas/core/generic.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -8452,8 +8452,8 @@ def asfreq(
84528452
will map one-to-one to the new index).
84538453
84548454
Otherwise, the new index will be equivalent to ``pd.date_range(start, end,
8455-
freq=freq)`` where ``start`` and ``end`` are, respectively, the first and
8456-
last entries in the original index (see :func:`pandas.date_range`). The
8455+
freq=freq)`` where ``start`` and ``end`` are, respectively, the min and
8456+
max entries in the original index (see :func:`pandas.date_range`). The
84578457
values corresponding to any timesteps in the new index which were not present
84588458
in the original index will be null (``NaN``), unless a method for filling
84598459
such unknowns is provided (see the ``method`` parameter below).
@@ -8471,7 +8471,7 @@ def asfreq(
84718471
does not fill NaNs that already were present):
84728472
84738473
* 'pad' / 'ffill': propagate last valid observation forward to next
8474-
valid
8474+
valid based on the order of the index
84758475
* 'backfill' / 'bfill': use NEXT valid observation to fill.
84768476
how : {{'start', 'end'}}, default end
84778477
For PeriodIndex only (see PeriodIndex.asfreq).

0 commit comments

Comments
 (0)