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:

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