Play arrow with refs.
This commit is contained in:
18
test_arrow.py
Normal file
18
test_arrow.py
Normal file
@ -0,0 +1,18 @@
|
||||
# %%
|
||||
import numpy as np
|
||||
import pandas as pd
|
||||
import pyarrow as pa
|
||||
import pyarrow.parquet as pq
|
||||
|
||||
# %%
|
||||
batch = pa.RecordBatch.from_pandas(
|
||||
pd.DataFrame({"colA": [1, 2, 3, 4], "colB": ["AAA", "BB", "CCCC", "D"]})
|
||||
)
|
||||
batch
|
||||
|
||||
# %%
|
||||
batch.to_pandas()
|
||||
|
||||
# %%
|
||||
|
||||
|
||||
Reference in New Issue
Block a user