Skip to content

Conversation

@amyfung
Copy link
Contributor

@amyfung amyfung commented Dec 12, 2025

Description

This PR replaces @doc decorators with inline docstrings in pandas/io/common.py for three functions: _get_filepath_or_buffer, infer_compression, and get_handle. The shared documentation for compression options has been expanded directly into each function's docstring.

Part of #62437

Checklist with Relevant Items

@amyfung amyfung marked this pull request as ready for review December 12, 2025 04:35
Comment on lines +327 to +328
.. versionadded:: 1.5.0
Added support for `.tar` files.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you remove this note?

Comment on lines +600 to +601
.. versionadded:: 1.5.0
Added support for `.tar` files.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same

Comment on lines +737 to +738
.. versionadded:: 1.5.0
Added support for `.tar` files.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same

Copy link
Member

@mroeschke mroeschke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, just a few things need removal

@mroeschke mroeschke added the Docs label Dec 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants