Ged Steponavicius created ARROW-8223:

             Summary: Schema.from_pandas breaks with pandas nullable integer 
                 Key: ARROW-8223
             Project: Apache Arrow
          Issue Type: Bug
          Components: Python
    Affects Versions: 0.15.1, 0.16.0, 0.15.0
         Environment: pyarrow 0.16
            Reporter: Ged Steponavicius

import pandas as pd
import pyarrow as pa
df = pd.DataFrame([{'int_col':1},
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{code}

This message was sent by Atlassian Jira

Reply via email to