import pyarrow.parquet as pq import numpy as np import pandas as pd import pyarrow as pa pq.write_table(table, 'example.parquet') table = pa.Table.from_pandas(df)