Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 8 additions & 9 deletions pandas/core/indexes/numeric.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,22 +80,21 @@


class NumericIndex(Index):
"""
Provide numeric type operations.

This is an abstract class.
"""

_index_descr_args = {
"klass": "NumericIndex",
"ltype": "integer or float",
"dtype": "inferred",
"extra": "",
}
_values: np.ndarray
_default_dtype: np.dtype
_dtype_validation_metadata: tuple[Callable[..., bool], str]
__doc__ = _num_index_shared_docs["class_descr"] % _index_descr_args

_typ = "numericindex"
_values: np.ndarray
_default_dtype: np.dtype | None = None
_dtype_validation_metadata: tuple[Callable[..., bool], str] = (
is_numeric_dtype,
"numeric type",
)
_is_numeric_dtype = True
_can_hold_strings = False

Expand Down