AlenkaF commented on issue #15133: URL: https://github.com/apache/arrow/issues/15133#issuecomment-1369561732
PyArrow doesn't support columns with mixed string and primitive dtypes and so it tries to convert to a double https://arrow.apache.org/docs/format/Columnar.html#terminology https://arrow.apache.org/docs/python/pandas.html#pandas-arrow-conversion https://github.com/apache/arrow/blob/b1a48c78a318402daab1d0f974825373ef41b293/python/pyarrow/tests/test_pandas.py#L2717-L2732 What you could do is to convert pandas `df` to a `pyarrow.Table` adding a `Schema` specifying the object column to be a string dtype and then [pyarrow.feather.write_feather](https://arrow.apache.org/docs/python/generated/pyarrow.feather.write_feather.html#pyarrow.feather.write_feather) should work fine. https://arrow.apache.org/docs/python/generated/pyarrow.Table.html#pyarrow.Table.from_pandas https://arrow.apache.org/docs/python/generated/pyarrow.Schema.html#pyarrow.Schema -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
