8000 restrict columns to read for pandas.read_parquet by hoffmann · Pull Request #18155 · pandas-dev/pandas · GitHub
[go: up one dir, main page]

Skip to content

restrict columns to read for pandas.read_parquet #18155

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 13 commits into from
Nov 8, 2017
Prev Previous commit
Next Next commit
add documentation how to read columns from parquet file
  • Loading branch information
hoffmann committed Nov 7, 2017
commit 21c5f5ea3528e451ec2653e19de094d25cdc0405
10 changes: 10 additions & 0 deletions doc/source/io.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4538,6 +4538,16 @@ Read from a parquet file.

result.dtypes

Read only certain columns of a parquet file.

.. ipython:: python
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in next PR, can you add a version added tag here (for 0.21.1)


result = pd.read_parquet('example_pa.parquet', engine='pyarrow', columns=['a', 'b'])
result = pd.read_parquet('example_fp.parquet', engine='fastparquet', columns=['a', 'b'])

result.dtypes


.. ipython:: python
:suppress:

Expand Down
0