Parquet Example
Install pandas library from Terminal (C:\ or $)
We import the pandas library.
We assume there's a CSV file named
sample.csv
in the same directory as your Python script.We use
pd.read_csv(file_path)
to read the CSV file. The resulting DataFrame (df
) contains the data from the CSV file.df.head()
Is used to print the first few rows of the DataFrame for a quick data preview.df.to_parquet() to convert data to parquet format
How to read the Parquet file?
Last updated