Skip to content

Commit 21c5f5e

Browse files
committed
add documentation how to read columns from parquet file
1 parent f91f5f8 commit 21c5f5e

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

doc/source/io.rst

+10
Original file line numberDiff line numberDiff line change
@@ -4538,6 +4538,16 @@ Read from a parquet file.
45384538
45394539
result.dtypes
45404540
4541+
Read only certain columns of a parquet file.
4542+
4543+
.. ipython:: python
4544+
4545+
result = pd.read_parquet('example_pa.parquet', engine='pyarrow', columns=['a', 'b'])
4546+
result = pd.read_parquet('example_fp.parquet', engine='fastparquet', columns=['a', 'b'])
4547+
4548+
result.dtypes
4549+
4550+
45414551
.. ipython:: python
45424552
:suppress:
45434553

0 commit comments

Comments
 (0)