Skip to content

Commit

Permalink
fix doc example
Browse files Browse the repository at this point in the history
  • Loading branch information
topper-123 committed Aug 6, 2021
1 parent fc8a75e commit 15870f5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions doc/source/user_guide/advanced.rst
Original file line number Diff line number Diff line change
Expand Up @@ -855,7 +855,7 @@ Int64Index and RangeIndex

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

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

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

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

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

:class:`NumericIndex` is an index type that can hold data of any numpy int/uint/float dtype. For example:
Expand All @@ -991,7 +991,7 @@ NumericIndex
index = pd.NumericIndex([1, 2, 4, 5], dtype="int8")
index
ser = pd.Series(range(5), index=index)
ser = pd.Series(range(4), index=index)
ser
``NumericIndex`` works the same way as the existing ``Int64Index``, ``Float64Index`` and
Expand Down
2 changes: 1 addition & 1 deletion doc/source/whatsnew/v1.4.0.rst
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ Instead if you want to use a ``NumericIndex``, you should do:
In Pandas 2.0, :class:`NumericIndex` will become the default numeric index type and
``Int64Index``, ``UInt64Index`` and ``Float64Index`` will be removed.

See :ref:`here <advanced.numericindex>` for more.
See :ref:`here <indexing.numericindex>` for more.

.. _whatsnew_140.enhancements.enhancement2:

Expand Down

0 comments on commit 15870f5

Please sign in to comment.