randolf-scholz opened a new issue, #37183:
URL: https://github.com/apache/arrow/issues/37183

   ### Describe the enhancement requested
   
   
[`pyarrow.compute.cast`](https://arrow.apache.org/docs/python/generated/pyarrow.compute.cast.html)
 allows for detailed control over unsafe casts via 
[`pyarrow.compute.CastOptions`](https://arrow.apache.org/docs/python/generated/pyarrow.compute.CastOptions.html#pyarrow.compute.CastOptions).
 This would be a useful addition to 
[`pyarrow.csv.ConvertOptions`](https://arrow.apache.org/docs/python/generated/pyarrow.csv.ConvertOptions.html#pyarrow.csv.ConvertOptions),
 for usage during 
[`read_csv`](https://arrow.apache.org/docs/python/generated/pyarrow.csv.read_csv.html).
 This would allow for instance:
   
   - immediately truncating timestamps in large time series data to desired 
size (it is desirable to have a single hard-coded schema and not having to 
re-cast columns after loading)
   - truncating floats to lower precision to safe memory
   
   ### Component(s)
   
   C++, Python


-- 
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]

Reply via email to