Skip to content

Commit dd444d6

Browse files
refactor: use the constructor method to covert Pandas to PyArrow
1 parent 9e63a18 commit dd444d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/dataframe/create_write_data.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@
110110
)
111111

112112
# convert Pandas DataFrame to Arrow RecordBatch
113-
batch_single = pa.record_batch(df)
113+
batch_single = pa.RecordBatch.from_pandas(df)
114114

115115
client.append_table_data(table_id, batch_single)
116116

0 commit comments

Comments
 (0)