pandas.DataFrame.to_parquet

DataFrame.to_parquet(fname, engine='auto', compression='snappy', **kwargs)[source]

Write a DataFrame to the binary parquet format.

New in version 0.21.0.

Parameters:

fname : str

string file path

engine : {‘auto’, ‘pyarrow’, ‘fastparquet’}, default ‘auto’

Parquet reader library to use. If ‘auto’, then the option ‘io.parquet.engine’ is used. If ‘auto’, then the first library to be installed is used.

compression : str, optional, default ‘snappy’

compression method, includes {‘gzip’, ‘snappy’, ‘brotli’}

kwargs

Additional keyword arguments passed to the engine

Scroll To Top