You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "simicd (via GitHub)" <gi...@apache.org> on 2023/02/25 14:37:07 UTC

[GitHub] [arrow-datafusion-python] simicd opened a new issue, #234: Cannot convert empty datafusion dataframe to pandas

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: github-unsubscribe@arrow.apache.org.apache.org

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


[GitHub] [arrow-datafusion-python] andygrove closed issue #234: Cannot convert empty datafusion dataframe to pandas

Posted by "andygrove (via GitHub)" <gi...@apache.org>.
andygrove closed issue #234: Cannot convert empty datafusion dataframe to pandas
URL: https://github.com/apache/arrow-datafusion-python/issues/234


-- 
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: github-unsubscribe@arrow.apache.org

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