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