simicd commented on issue #139:
URL: 
https://github.com/apache/arrow-datafusion-python/issues/139#issuecomment-1436097362

   Thanks for sharing @krzysztof-kwitt! I think that works - I tried to 
implement a `to_pandas()` method on the datafusion dataframe that collects 
recordbatches and turns them into a single pandas dataframe - see #197
   
   Example:
   ```python
   batch_1 = pa.RecordBatch.from_arrays(
       [pa.array([0.1, -0.7, 0.55])], names=["value"]
   )
   batch_2 = pa.RecordBatch.from_arrays(
       [pa.array([0.5, -0.6, 0.8])], names=["value"]
   )
   df = ctx.create_dataframe([[batch_1, batch_2]])
   ```
   
   Result:
   
![image](https://user-images.githubusercontent.com/10134699/219976010-0a381c69-39dc-4697-85d5-f017e2e0ebd1.png)
   


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