Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to store in parquet format using pandas

>>> df = pd.DataFrame(data={'col1': [1, 2], 'col2': [3, 4]})
>>> df.to_parquet('df.parquet.gzip', compression='gzip')  
>>> pd.read_parquet('df.parquet.gzip')  
   col1  col2
0     1     3
1     2     4
Source by pandas.pydata.org #
 
PREVIOUS NEXT
Tagged: #store #parquet #format #pandas
ADD COMMENT
Topic
Name
8+2 =