Write data

Write Pandas DataFrame to Parquet file

Write your Pandas DataFrame into Parquet file. Parquet is columnar storage format well suited for large volumes of data. We are using pyarrow engine to handle parquet binary format.

pandasparquet

Required packages

You need below packages to use the code generated by recipe. All packages are automatically installed in MLJAR Studio.

pandas>=1.0.0

pyarrow>=16.1.0

Interactive recipe

You can use below interactive recipe to generate code. This recipe is available in MLJAR Studio.

In the below recipe, we assume that you have following variables available in your notebook:

  • df_1 (type DataFrame)
  • df_2 (type DataFrame)

Python code

# Python code will be here

Code explanation

  1. Write DataFrame to parquet file.
  2. Print success message that file was saved.

Write data cookbook

Code recipes from Write data cookbook.

« Previous
Write CSV