Skip to content

Commit 5c45e43

Browse files
committed
Updated documentation for issue 4484.
1 parent 1211711 commit 5c45e43

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

doc/source/basics.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -724,16 +724,16 @@ We illustrate these fill methods on a simple TimeSeries:
724724
ts2.reindex(ts.index, method='ffill')
725725
ts2.reindex(ts.index, method='bfill')
726726
727+
Note these methods require that the indexes are **order increasing**.
728+
727729
Note the same result could have been achieved using :ref:`fillna
728730
<missing_data.fillna>`:
729731

730732
.. ipython:: python
731733
732734
ts2.reindex(ts.index).fillna(method='ffill')
733735
734-
Note these methods generally assume that the indexes are **sorted**. They may
735-
be modified in the future to be a bit more flexible but as time series data is
736-
ordered most of the time anyway, this has not been a major priority.
736+
Note that this method does not check the order of the index.
737737

738738
.. _basics.drop:
739739

doc/source/missing_data.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,9 @@ To remind you, these are the available filling methods:
205205
With time series data, using pad/ffill is extremely common so that the "last
206206
known value" is available at every time point.
207207

208+
The ``ffill()`` function is equivalent to ``fillna(method='ffill')``
209+
and ``bfill()`` is equivalent to ``fillna(method='bfill')``
210+
208211
.. _missing_data.dropna:
209212

210213
Dropping axis labels with missing data: dropna

doc/source/release.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ pandas 0.13
5050

5151
**API Changes**
5252

53+
- ``DataFrame.reindex()`` and forward/backward filling now raises ValueError
54+
if either index is not monotonic (:issue: `4484`).
5355
- ``pandas`` now is Python 2/3 compatible without the need for 2to3 thanks to
5456
@jtratner. As a result, pandas now uses iterators more extensively. This
5557
also led to the introduction of substantive parts of the Benjamin

0 commit comments

Comments
 (0)