Skip to content

Instantly share code, notes, and snippets.

@QuakePhil
Created December 12, 2019 15:57
Show Gist options
  • Save QuakePhil/5506f18f35b6cda4b966187e90f31386 to your computer and use it in GitHub Desktop.
Save QuakePhil/5506f18f35b6cda4b966187e90f31386 to your computer and use it in GitHub Desktop.
test.py
import pandas as pd
import pyarrow as pa
import pyarrow.parquet as pq
buffer = [[1,2,3], [4,5,6], [7,8,9]]
pq.write_table(
pa.Table.from_pandas(pd.DataFrame(buffer)), "test.parquet"
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment