From 49c203ac8f1871d2da5740b4a86c1552db56dd27 Mon Sep 17 00:00:00 2001 From: rahulsiloniya Date: Wed, 21 Jun 2023 23:54:29 +0530 Subject: [PATCH 1/3] Added suggested new line to fix doc code example --- pandas/core/frame.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pandas/core/frame.py b/pandas/core/frame.py index b411cfc4a4685..71e20404d4874 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -2981,6 +2981,7 @@ def to_orc( 1 2 3 If you want to get a buffer to the orc content you can write it to io.BytesIO + >>> import io >>> b = io.BytesIO(df.to_orc()) # doctest: +SKIP >>> b.seek(0) # doctest: +SKIP From 5c12af0aecb9093a51d94d59ab2f076d2dc6b48d Mon Sep 17 00:00:00 2001 From: rahulsiloniya Date: Thu, 22 Jun 2023 00:23:11 +0530 Subject: [PATCH 2/3] Removed the newline --- pandas/core/frame.py | 1 - 1 file changed, 1 deletion(-) diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 71e20404d4874..b411cfc4a4685 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -2981,7 +2981,6 @@ def to_orc( 1 2 3 If you want to get a buffer to the orc content you can write it to io.BytesIO - >>> import io >>> b = io.BytesIO(df.to_orc()) # doctest: +SKIP >>> b.seek(0) # doctest: +SKIP From 62b8f2e5dfa8b5bf5294bccf355bb81078f5cc5a Mon Sep 17 00:00:00 2001 From: rahulsiloniya Date: Thu, 22 Jun 2023 00:36:48 +0530 Subject: [PATCH 3/3] Done --- pandas/core/frame.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pandas/core/frame.py b/pandas/core/frame.py index b411cfc4a4685..352d353ef4dba 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -2981,6 +2981,7 @@ def to_orc( 1 2 3 If you want to get a buffer to the orc content you can write it to io.BytesIO + >>> import io >>> b = io.BytesIO(df.to_orc()) # doctest: +SKIP >>> b.seek(0) # doctest: +SKIP