You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Proposal: write_csv() & sink_csv() allow you to specify a single precision to apply to all float columns.
Update this behavior to support dictionaries of {'col': precision} to allow for column-specific formatting.
Background & Use Case:
I'm currently using polars for ETL in a legacy environment, and the downstream tooling expects columns to have the same precision as the database. NUMERIC(19,6) expects 6 decimal places, NUMERIC(5,3) expects 3 & so on.
This is related to #11929 & #7133 , but a bit of a narrower request.
The text was updated successfully, but these errors were encountered:
Ideally you would use the Decimal type which maps exactly to those database types with a specific precision and scale!
Unfortunately this is still experimental and has lots of limitations and I just checked and its not possible to write a Decimal to csv 😆
Description
Proposal:
write_csv() & sink_csv()
allow you to specify a single precision to apply to all float columns.Update this behavior to support dictionaries of
{'col': precision}
to allow for column-specific formatting.Background & Use Case:
I'm currently using polars for ETL in a legacy environment, and the downstream tooling expects columns to have the same precision as the database.
NUMERIC(19,6)
expects 6 decimal places,NUMERIC(5,3)
expects 3 & so on.This is related to #11929 & #7133 , but a bit of a narrower request.
The text was updated successfully, but these errors were encountered: