Skip to content

DOC: to_orc example doesn't render #53770

Closed
@MarcoGorelli

Description

@MarcoGorelli
Member

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

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      Participants

      @MarcoGorelli@AlimurtuzaCodes

      Issue actions

        DOC: to_orc example doesn't render · Issue #53770 · pandas-dev/pandas