We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9d6f8fe commit a3eee5bCopy full SHA for a3eee5b
pandas/core/indexes/numeric.py
@@ -80,22 +80,21 @@
80
81
82
class NumericIndex(Index):
83
- """
84
- Provide numeric type operations.
85
-
86
- This is an abstract class.
87
88
89
_index_descr_args = {
90
"klass": "NumericIndex",
91
"ltype": "integer or float",
92
"dtype": "inferred",
93
"extra": "",
94
}
95
- _values: np.ndarray
96
- _default_dtype: np.dtype
97
- _dtype_validation_metadata: tuple[Callable[..., bool], str]
+ __doc__ = _num_index_shared_docs["class_descr"] % _index_descr_args
98
+ _typ = "numericindex"
+ _values: np.ndarray
+ _default_dtype: np.dtype | None = None
+ _dtype_validation_metadata: tuple[Callable[..., bool], str] = (
+ is_numeric_dtype,
+ "numeric type",
+ )
99
_is_numeric_dtype = True
100
_can_hold_strings = False
101
0 commit comments