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 8080
8181
8282class NumericIndex (Index ):
83- """
84- Provide numeric type operations.
85-
86- This is an abstract class.
87- """
88-
8983 _index_descr_args = {
9084 "klass" : "NumericIndex" ,
9185 "ltype" : "integer or float" ,
9286 "dtype" : "inferred" ,
9387 "extra" : "" ,
9488 }
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
9890
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+ )
9998 _is_numeric_dtype = True
10099 _can_hold_strings = False
101100
You can’t perform that action at this time.
0 commit comments