Skip to content

Commit 808a8d0

Browse files
committed
fix doc example
1 parent fc8a75e commit 808a8d0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

doc/source/user_guide/advanced.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -991,7 +991,7 @@ NumericIndex
991991
992992
index = pd.NumericIndex([1, 2, 4, 5], dtype="int8")
993993
index
994-
ser = pd.Series(range(5), index=index)
994+
ser = pd.Series(range(4), index=index)
995995
ser
996996
997997
``NumericIndex`` works the same way as the existing ``Int64Index``, ``Float64Index`` and

doc/source/whatsnew/v1.4.0.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ Instead if you want to use a ``NumericIndex``, you should do:
6161
In Pandas 2.0, :class:`NumericIndex` will become the default numeric index type and
6262
``Int64Index``, ``UInt64Index`` and ``Float64Index`` will be removed.
6363

64-
See :ref:`here <advanced.numericindex>` for more.
64+
See :ref:`here <indexing.numericindex>` for more.
6565

6666
.. _whatsnew_140.enhancements.enhancement2:
6767

0 commit comments

Comments
 (0)