티스토리 뷰
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
'공부' 카테고리의 다른 글
[spark] shuffle (0) | 2022.08.05 |
---|---|
[github] actions workflows `on.schedule.cron: * * * * *` delay (0) | 2022.07.31 |
[Java] pandas add filename column `df.withColumn("filename", input_file_name()) (0) | 2022.07.31 |
[Python] pandas `df.reset_index()` (0) | 2022.07.31 |
[Avro] Schema Registry Compatibility Level (0) | 2022.07.31 |
댓글