pandas.DataFrame.to_parquet — pandas 0.24.0rc1 documentation (original) (raw)
fname : str
File path or Root Directory path. Will be used as Root Directory path while writing a partitioned dataset.
Changed in version 0.24.0.
engine : {‘auto’, ‘pyarrow’, ‘fastparquet’}, default ‘auto’
Parquet library to use. If ‘auto’, then the optionio.parquet.engine
is used. The default io.parquet.engine
behavior is to try ‘pyarrow’, falling back to ‘fastparquet’ if ‘pyarrow’ is unavailable.
compression : {‘snappy’, ‘gzip’, ‘brotli’, None}, default ‘snappy’
Name of the compression to use. Use None
for no compression.
index : bool, default None
If True
, include the dataframe’s index(es) in the file output. If False
, they will not be written to the file. If None
, the behavior depends on the chosen engine.
New in version 0.24.0.
partition_cols : list, optional, default None
Column names by which to partition the dataset Columns are partitioned in the order they are given
New in version 0.24.0.
**kwargs
Additional arguments passed to the parquet library. Seepandas io for more details.