Created
July 30, 2018 01:27
-
-
Save raecoo/73a21e83c1933b63b9bc00632853bef2 to your computer and use it in GitHub Desktop.
Export parquet file schema
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import io, json | |
from pyarrow.parquet import ParquetFile | |
data = ParquetFile("/Users/raecoo/Desktop/data-0.gz.parquet").schema | |
with io.open('data.txt', 'w', encoding='utf-8') as f: | |
f.write(str(data)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment