Created
May 7, 2019 15:20
-
-
Save vepetkov/b923359759497acbf06d31a2f66e9eba to your computer and use it in GitHub Desktop.
Read a local ORC file in Python and convert it to a DF
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 pandas as pd | |
import pyarrow.orc as orc | |
file0 = open('/hive/warehouse/000000_0', 'rb') | |
data0 = orc.ORCFile(file0) | |
df0 = data0.read(columns=['_col10', '_col50']).to_pandas() | |
df0.describe() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment