Skip to content

DOC: backslash removed for read_clipboard #51868

Closed
@wjandrea

Description

@wjandrea

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/reference/api/pandas.read_clipboard.html

Documentation problem

Backslash is missing in the Parameters section:

pandas.read_clipboard(sep='\\s+', **kwargs)
...
Parameters
sep : str, default ‘s+’
A string or regex delimiter. The default of ‘s+’ denotes one or more whitespace characters.


Relevant source code:

def read_clipboard(sep: str = r"\s+", **kwargs):  # pragma: no cover
    r"""
    ...

    Parameters
    ----------
    sep : str, default '\s+'
        A string or regex delimiter. The default of '\s+' denotes
        one or more whitespace characters.

    ...
    """

Suggested fix for documentation

I believe your documentation generator is removing the backslash at some point, so hopefully there's a way to turn that off.

I don't believe this issue has much impact. At worst it could confuse some newcomers, that's about it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions