You can save the Pandas DataFrame as Parquet File with the given code.
Step 1: Installation
pip install fastparquet
Step 2: DataFrame as Parquet
# Import the Pandas library as pd import pandas as pd # Initialize a dictionary dict = {'Students':['Harry', 'John', 'Hussain', 'Satish'], 'Scores':[77, 59, 88, 93]} # Create a DataFrame df = pd.DataFrame(dict) df.to_parquet('data.parquet', engine='fastparquet')