Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Duplicate
-
0.15.0, 0.15.1, 0.16.0
-
pyarrow 0.16
Description
import pandas as pd import pyarrow as pa df = pd.DataFrame([{'int_col':1}, {'int_col':2}]) df['int_col'] = df['int_col'].astype(pd.Int64Dtype()) schema = pa.Schema.from_pandas(df)
produces ArrowTypeError: Did not pass numpy.dtype object
However, this works fine
schema = pa.Table.from_pandas(df).schema
Attachments
Issue Links
- is duplicated by
-
ARROW-8159 [Python] pyarrow.Schema.from_pandas doesn't support ExtensionDtype
- Resolved