Skip to content

DOC: to_orc example doesn't render #53770

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
1 task done
MarcoGorelli opened this issue Jun 21, 2023 · 1 comment · Fixed by #53775
Closed
1 task done

DOC: to_orc example doesn't render #53770

MarcoGorelli opened this issue Jun 21, 2023 · 1 comment · Fixed by #53775

Comments

@MarcoGorelli
Copy link
Member

MarcoGorelli commented Jun 21, 2023

Pandas version checks

  • I have checked that the issue still exists on the latest versions of the docs on main here

Location of the documentation

https://pandas.pydata.org/docs/dev/reference/api/pandas.DataFrame.to_orc.html

Documentation problem

The example doesn't render, see the example of the page

Suggested fix for documentation

just need to add an empty line (with no whitespace!)

diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index b411cfc4a4..352d353ef4 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -2981,6 +2981,7 @@ class DataFrame(NDFrame, OpsMixin):
         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
@AlimurtuzaCodes
Copy link

I can fix this Can you assign it to me?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants