simicd opened a new issue, #234: URL: https://github.com/apache/arrow-datafusion-python/issues/234
**Describe the bug** The previously introduced `to_pandas()` dataframe method works only if there are 1 or more record batches. If a datafusion dataframe is empty the method will return an error instead of an empty pandas DataFrame. This error was raised by @krzysztof-kwitt in #197 **To Reproduce** `df.limit(0).to_pandas()` fails with an error. **Expected behavior** Empty pandas dataframe **Additional context** Fix: Pass record batch schema into the arrow Table class resolves this issue. -- 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]
