We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d36ef84 commit 1228b6eCopy full SHA for 1228b6e
pandas/_libs/testing.pyx
@@ -6,33 +6,17 @@ from numpy cimport import_array
6
7
import_array()
8
9
-from pandas._libs.util cimport is_array
+from pandas._libs.util cimport (
10
+ is_array,
11
+ is_real_number_object
12
+)
13
14
from pandas.core.dtypes.common import is_dtype_equal
15
from pandas.core.dtypes.missing import array_equivalent, isna
16
17
-cdef NUMERIC_TYPES = (
- bool,
- int,
18
- float,
19
- np.bool_,
20
- np.int8,
21
- np.int16,
22
- np.int32,
23
- np.int64,
24
- np.uint8,
25
- np.uint16,
26
- np.uint32,
27
- np.uint64,
28
- np.float16,
29
- np.float32,
30
- np.float64,
31
-)
32
-
33
34
cdef bint is_comparable_as_number(obj):
35
- return isinstance(obj, NUMERIC_TYPES)
+ return is_real_number_object(obj)
36
37
38
cdef bint isiterable(obj):
0 commit comments