Skip to content

Instantly share code, notes, and snippets.

@erelinz
Created June 29, 2023 02:52
Show Gist options
  • Save erelinz/ddba64082289f2090ebe71e2eeb86506 to your computer and use it in GitHub Desktop.
Save erelinz/ddba64082289f2090ebe71e2eeb86506 to your computer and use it in GitHub Desktop.
parquet2json is a Python script that converts a Parquet file to JSON format
#!/usr/bin/python3
import sys; import pandas as pd; pd.read_parquet(sys.argv[1]).to_json(sys.stdout, orient='records')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment