Skip to content

Commit 2f6e6de

Browse files
address typing
1 parent 5ef1f3b commit 2f6e6de

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

pandas/core/frame.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1881,9 +1881,11 @@ def from_arrow(
18811881
"'_arrow_c_array__' or '__arrow_c_stream__' method), got "
18821882
f"'{type(data).__name__}' instead."
18831883
)
1884-
data = pa.table(data)
1884+
pa_table = pa.table(data)
1885+
else:
1886+
pa_table = data
18851887

1886-
df = data.to_pandas()
1888+
df = pa_table.to_pandas()
18871889
return df
18881890

18891891
@classmethod

0 commit comments

Comments
 (0)