Skip to content

Commit 7d9e99c

Browse files
committed
BLD: float128/complex256 are NumPy >= 1.6 only
1 parent 3de2e9c commit 7d9e99c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/src/inference.pyx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,16 @@ _TYPE_MAP = {
1111
np.uint64: 'integer',
1212
np.float32: 'floating',
1313
np.float64: 'floating',
14-
np.float128: 'floating',
1514
np.complex64: 'complex',
1615
np.complex128: 'complex',
17-
np.complex256: 'complex',
1816
np.string_: 'string',
1917
np.unicode_: 'unicode',
2018
np.bool_: 'boolean'
2119
}
2220

2321
try:
22+
_TYPE_MAP[np.float128] = 'floating'
23+
_TYPE_MAP[np.complex256] = 'complex'
2424
_TYPE_MAP[np.float16] = 'floating'
2525
_TYPE_MAP[np.datetime64] = 'datetime64'
2626
except AttributeError:

0 commit comments

Comments
 (0)