Spaces:
Sleeping
Sleeping
File size: 815 Bytes
12e4fa9 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
#remove the hashtags from lines 3, 4, and 5 the first time you run this script to install the required packages
#pip install pandas
#pip install pyarrow
#pip install openpyxl
import pandas as pd
# Update the paths below to where your files are located in your Windows Downloads folder
input_parquet_path = r'c:\Users\username\Downloads\FILENAME.parquet' # Update this to your file's path
output_csv_path = r'c:\Users\username\Downloads\output.csv' # Update this to your desired output path
# NOW YOU CAN RUN THE SCRIPT
# THE OUTPUT FILE WILL BE LOCATED IN YOUR WINDOWS DOWNLOADS FOLDER BY DEFAULT
# Reading the Parquet file
df = pd.read_parquet(input_parquet_path)
# Writing to an CSV file
df.to_csv(output_csv_path, index=False)
print(f"Successfully converted {input_parquet_path} to {output_csv_path}")
|