Skip to content

DOC: defaults in method signature vs description #59880

Open
@kuraga

Description

@kuraga

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

Everywhere.

Documentation problem

The default value in method signature and the default value in the method description is sometimes different.
Examples:

https://pandas.pydata.org/docs/reference/api/pandas.Series.replace.html:
does Series.replace's:
to_replace have None (docs signature) as default, or have no default (docs description)?
value have no default (docs signature), or None (docs description)?

https://pandas.pydata.org/docs/reference/api/pandas.read_csv.html:
does read_csv's:
sep have no default (docs signature), or ';' (docs description)?
...

...

Suggested fix for documentation

Fix.

Metadata

Metadata

Assignees

No one assigned

    Labels

    DocsNeeds DiscussionRequires discussion from core team before further action

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions