티스토리 뷰

공부

[Python] pandas `csv` -> `parquet`

승가비 2022. 7. 31. 02:48
728x90
import pandas as pd
df = pd.read_csv("input.csv")
df.to_parquet("output.parquet")

https://stackoverflow.com/questions/50604133/convert-csv-to-parquet-file-using-python

 

Convert csv to parquet file using python

I am trying to convert a .csv file to a .parquet file. The csv file (Temp.csv) has the following format 1,Jon,Doe,Denver I am using the following python code to convert it into parquet from

stackoverflow.com

 

728x90
댓글
댓글쓰기 폼