Parquet Example
pip install pandasimport pandas as pd
# Assuming you have a CSV file named 'sample.csv'
# file_path = 'sample.csv'
# file_path = 'https://raw.githubusercontent.com/gchandra10/filestorage/main/sales_100.csv'
# Read the CSV file
df = pd.read_csv(file_path)
# Display the first few rows of the DataFrame
print(df.head())
# Write DataFrame to a Parquet file
df.to_parquet('sample.parquet')How to read the Parquet file?
Last updated