Convert Parquet to CSV

后端 未结 1 1645
花落未央
花落未央 2021-02-13 12:41

How to convert Parquet to CSV from a local file system (e.g. python, some library etc.) but WITHOUT Spark? (trying to find as simple and minimalistic solution as possible becaus

相关标签:
1条回答
  • 2021-02-13 12:53

    You can do this by using the Python packages pandas and pyarrow (pyarrow is an optional dependency of pandas that you need for this feature).

    import pandas as pd
    df = pd.read_parquet('filename.parquet')
    df.to_csv('filename.csv')
    

    When you need to make modifications to the contents in the file, you can standard pandas operations on df.

    0 讨论(0)
提交回复
热议问题