From bc3c5d45c08de691cb43b141bd3350adbca6a195 Mon Sep 17 00:00:00 2001 From: Vijay Vaidyanathan Date: Sat, 15 Jul 2023 20:50:01 -0700 Subject: [PATCH] DOC: Provide examples of using read_parquet #49739 Fixed typos that were causing tests to fail. Oops. --- pandas/io/parquet.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pandas/io/parquet.py b/pandas/io/parquet.py index 92f09c45e3c90..19eaaac700fb9 100644 --- a/pandas/io/parquet.py +++ b/pandas/io/parquet.py @@ -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 @@ -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