Skip to content

DOC: Series.str.rstrip() and Series.str.lstrip() have incorrect description at the top #34026

Closed
@Dr-Irv

Description

@Dr-Irv

Location of the documentation

https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.Series.str.rstrip.html
https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.Series.str.lstrip.html

Documentation problem

At the top of the documentation for the rstrip() and lstrip() methods, it says "Remove leading and trailing characters."

Suggested fix for documentation

It should say "Remove trailing characters" for rstrip() and "Remove leading characters" for lstrip().

This is due to the way that the shared docs are set up between str.lstrip(), str.rstrip() and str.strip()

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions