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
8 changes: 4 additions & 4 deletions python/pyarrow/pandas_compat.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
import warnings

import numpy as np
from numpy.core.numerictypes import sctypes as _np_sctypes

import pyarrow as pa
from pyarrow.lib import _pandas_api, frombytes # noqa
Expand Down Expand Up @@ -789,9 +788,10 @@ def table_to_dataframe(
# Set of the string repr of all numpy dtypes that can be stored in a pandas
# dataframe (complex not included since not supported by Arrow)
_pandas_supported_numpy_types = {
str(np.dtype(typ))
for typ in (_np_sctypes['int'] + _np_sctypes['uint'] + _np_sctypes['float'] +
['object', 'bool'])
"int8", "int16", "int32", "int64",
"uint8", "uint16", "uint32", "uint64",
"float16", "float32", "float64",
"object", "bool"
}


Expand Down