File tree Expand file tree Collapse file tree 1 file changed +8
-9
lines changed Expand file tree Collapse file tree 1 file changed +8
-9
lines changed Original file line number Diff line number Diff line change 80
80
81
81
82
82
class NumericIndex (Index ):
83
- """
84
- Provide numeric type operations.
85
-
86
- This is an abstract class.
87
- """
88
-
89
83
_index_descr_args = {
90
84
"klass" : "NumericIndex" ,
91
85
"ltype" : "integer or float" ,
92
86
"dtype" : "inferred" ,
93
87
"extra" : "" ,
94
88
}
95
- _values : np .ndarray
96
- _default_dtype : np .dtype
97
- _dtype_validation_metadata : tuple [Callable [..., bool ], str ]
89
+ __doc__ = _num_index_shared_docs ["class_descr" ] % _index_descr_args
98
90
91
+ _typ = "numericindex"
92
+ _values : np .ndarray
93
+ _default_dtype : np .dtype | None = None
94
+ _dtype_validation_metadata : tuple [Callable [..., bool ], str ] = (
95
+ is_numeric_dtype ,
96
+ "numeric type" ,
97
+ )
99
98
_is_numeric_dtype = True
100
99
_can_hold_strings = False
101
100
You can’t perform that action at this time.
0 commit comments