Skip to content

Commit

Permalink
DOC: Provide examples of using read_parquet pandas-dev#49739
Browse files Browse the repository at this point in the history
Fixed typos that were causing tests to fail. Oops.
  • Loading branch information
Vijay Vaidyanathan committed Jul 16, 2023
1 parent 0ec5d45 commit bc3c5d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pandas/io/parquet.py
Original file line number Diff line number Diff line change
Expand Up @@ -576,7 +576,7 @@ def read_parquet(
4 4 9
>>> df_parquet_bytes = original_df.to_parquet()
>>> from io import BytesIO
>>> restored_df = pd.read_parquet(BytesIO(df_parquet_bytes))
>>> restored_df = pd.read_parquet(BytesIO(df_parquet_bytes))
>>> restored_df
foo bar
0 0 5
Expand Down Expand Up @@ -606,7 +606,7 @@ def read_parquet(
which can benefit from multithreading and also potentially be more
economical in terms of memory.
>>> sel = [("bar", ">", 2)]
>>> sel = [("foo", ">", 2)]
>>> restored_part = pd.read_parquet(BytesIO(df_parquet_bytes), filters=sel)
>>> restored_part
foo bar
Expand Down

0 comments on commit bc3c5d4

Please sign in to comment.