Skip to content

Commit bc3c5d4

Browse files
author
Vijay Vaidyanathan
committed
DOC: Provide examples of using read_parquet pandas-dev#49739
Fixed typos that were causing tests to fail. Oops.
1 parent 0ec5d45 commit bc3c5d4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/io/parquet.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -576,7 +576,7 @@ def read_parquet(
576576
4 4 9
577577
>>> df_parquet_bytes = original_df.to_parquet()
578578
>>> from io import BytesIO
579-
>>> restored_df = pd.read_parquet(BytesIO(df_parquet_bytes))
579+
>>> restored_df = pd.read_parquet(BytesIO(df_parquet_bytes))
580580
>>> restored_df
581581
foo bar
582582
0 0 5
@@ -606,7 +606,7 @@ def read_parquet(
606606
which can benefit from multithreading and also potentially be more
607607
economical in terms of memory.
608608
609-
>>> sel = [("bar", ">", 2)]
609+
>>> sel = [("foo", ">", 2)]
610610
>>> restored_part = pd.read_parquet(BytesIO(df_parquet_bytes), filters=sel)
611611
>>> restored_part
612612
foo bar

0 commit comments

Comments
 (0)