atherkevin commented on issue #15133: URL: https://github.com/apache/arrow/issues/15133#issuecomment-1369839423
Thank you! Appreciate the help! On Tue, Jan 3, 2023 at 3:41 AM Alenka Frim ***@***.***> wrote: > 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 > > — > Reply to this email directly, view it on GitHub > <https://github.com/apache/arrow/issues/15133#issuecomment-1369561732>, > or unsubscribe > <https://github.com/notifications/unsubscribe-auth/A4OTESWUUMZ4YFNGZR5UCHTWQPX5TANCNFSM6AAAAAATNFPU24> > . > You are receiving this because you authored the thread.Message ID: > ***@***.***> > -- 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]
