alanhdu opened a new issue, #43435:
URL: https://github.com/apache/arrow/issues/43435

   ### Describe the enhancement requested
   
   I have a function that returns an iterator-of-tuples and would like to turn 
that into pyarrow table. I have the column names separately, would like to use 
the PyArrow's type inference for the actual types.
   
   I can sort of get what I want with something like:
   
   ```python
   import pandas as pd
   
   pa.Table.from_pandas(
       pd.DataFrame.from_records(tuples, columns=column_names)
   )
   ```
   
   But this doesn't quite work, since Pandas will cast nullable integers to 
floats.
   
   ### Component(s)
   
   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: issues-unsubscr...@arrow.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to