How can I open a .snappy.parquet file in python 3.5? So far, I used this code:
import numpy
import pyarrow
filename = "/Users/T/Desktop/data.snappy.parquet"
df = pyarrow.parquet.read_table(filename).to_pandas()
But, it gives this error:
AttributeError: module 'pyarrow' has no attribute 'compat'
P.S. I installed pyarrow this way:
pip install pyarrow
Add the snappy_decompress function
→ why? Thepf = ParquetFile('filename')
anddff=pf.to_pandas()
lines are doing all magic by itself.import snappy
andsnappy_decompress
function is doing nothing in this example. – Dollar