You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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 #197To 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.
The text was updated successfully, but these errors were encountered: