@@ -51,12 +51,6 @@ class NumericIndex(Index):
51
51
52
52
.. versionadded:: 1.4.0
53
53
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
-
60
54
Parameters
61
55
----------
62
56
data : array-like (1-dimensional)
@@ -81,12 +75,18 @@ class NumericIndex(Index):
81
75
UInt64Index : Index of purely uint64 labels (deprecated).
82
76
Float64Index : Index of purely float64 labels (deprecated).
83
77
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
+
84
84
Examples
85
85
--------
86
- >>> pd.NumericIndex([1, 2, 3])
87
- NumericIndex([1, 2, 3], dtype='int32')
88
86
>>> pd.NumericIndex([1, 2, 3], dtype="int8")
89
87
NumericIndex([1, 2, 3], dtype='int8')
88
+ >>> pd.NumericIndex([1, 2, 3], dtype="float32")
89
+ NumericIndex([1, 2, 3], dtype='float32')
90
90
"""
91
91
92
92
_typ = "numericindex"
0 commit comments