Skip to content

Commit ce2c306

Browse files
committed
fix test failures
1 parent 5afecb2 commit ce2c306

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

pandas/core/indexes/numeric.py

+8-8
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,6 @@ class NumericIndex(Index):
5151
5252
.. versionadded:: 1.4.0
5353
54-
Notes
55-
-----
56-
An NumericIndex instance can **only** contain numpy int64/32/16/8, uint64/32/16/8 or
57-
float64/32/16 dtype. In Particulat, ``NumericIndex`` *can not* hold Pandas numeric
58-
dtypes (:class:`Int64Dtype`, :class:`Int32Dtype` etc.).
59-
6054
Parameters
6155
----------
6256
data : array-like (1-dimensional)
@@ -81,12 +75,18 @@ class NumericIndex(Index):
8175
UInt64Index : Index of purely uint64 labels (deprecated).
8276
Float64Index : Index of purely float64 labels (deprecated).
8377
78+
Notes
79+
-----
80+
An NumericIndex instance can **only** contain numpy int64/32/16/8, uint64/32/16/8 or
81+
float64/32/16 dtype. In particular, ``NumericIndex`` *can not* hold Pandas numeric
82+
dtypes (:class:`Int64Dtype`, :class:`Int32Dtype` etc.).
83+
8484
Examples
8585
--------
86-
>>> pd.NumericIndex([1, 2, 3])
87-
NumericIndex([1, 2, 3], dtype='int32')
8886
>>> pd.NumericIndex([1, 2, 3], dtype="int8")
8987
NumericIndex([1, 2, 3], dtype='int8')
88+
>>> pd.NumericIndex([1, 2, 3], dtype="float32")
89+
NumericIndex([1, 2, 3], dtype='float32')
9090
"""
9191

9292
_typ = "numericindex"

0 commit comments

Comments
 (0)