mongodb-labs / mongo-arrow

MongoDB integrations for Apache Arrow. Export MongoDB documents to numpy array, parquet files, and pandas dataframes in one line of code.
https://mongo-arrow.readthedocs.io
Apache License 2.0
92 stars 14 forks source link

[documentation update request / feature request] `write` supported types #209

Closed alessio-locatelli closed 6 months ago

alessio-locatelli commented 6 months ago

Update after the issue was created

I'm sorry I bothered you.

I assume I must not use polars.Enum or I must cast it to another type before calling the write function.


Duplicate issues

I did not find an open issue with a roadmap to document workarounds or add a built-in support for this.

Something related: https://github.com/mongodb-labs/mongo-arrow/issues/109, https://github.com/mongodb-labs/mongo-arrow/issues/35

Preface

This is a feature request to make the write function usable by supporting valid polars.DataFrame types.

An alternative option is updating the documentation with an example that shows how to deal with the natively unsupported types.

TO-DO

Versions

pip show pymongoarrow

pip show polars-lts-cpu