Skip to content

Commit 15870f5

Browse files
committed
fix doc example
1 parent fc8a75e commit 15870f5

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

doc/source/user_guide/advanced.rst

+4-4
Original file line numberDiff line numberDiff line change
@@ -855,7 +855,7 @@ Int64Index and RangeIndex
855855

856856
In pandas 2.0, :class:`NumericIndex` will become the default index type for numeric types
857857
instead of ``Int64Index``, ``Float64Index`` and ``UInt64Index`` and those index types
858-
will be removed. See :ref:`here <advanced.numericindex>` for more.
858+
will be removed. See :ref:`here <indexing.numericindex>` for more.
859859
``RangeIndex`` however, will not be removed, as it represents an optimized version of an integer index.
860860

861861
:class:`Int64Index` is a fundamental basic index in pandas. This is an immutable array
@@ -873,7 +873,7 @@ Float64Index
873873

874874
In pandas 2.0, :class:`NumericIndex` will become the default index type for numeric types
875875
instead of ``Int64Index``, ``Float64Index`` and ``UInt64Index`` and those index types
876-
will be removed. See :ref:`here <advanced.numericindex>` for more.
876+
will be removed. See :ref:`here <indexing.numericindex>` for more.
877877
``RangeIndex`` however, will not be removed, as it represents an optimized version of an integer index.
878878

879879
By default a :class:`Float64Index` will be automatically created when passing floating, or mixed-integer-floating values in index creation.
@@ -982,7 +982,7 @@ NumericIndex
982982

983983
In pandas 2.0, :class:`NumericIndex` will become the default index type for numeric types
984984
instead of ``Int64Index``, ``Float64Index`` and ``UInt64Index`` and those index types
985-
will be removed. See :ref:`here <advanced.numericindex>` for more.
985+
will be removed. See :ref:`here <indexing.numericindex>` for more.
986986
``RangeIndex`` however, will not be removed, as it represents an optimized version of an integer index.
987987

988988
:class:`NumericIndex` is an index type that can hold data of any numpy int/uint/float dtype. For example:
@@ -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)