Skip to content

DOC: missing path-like at path parameter in to_pickle() #46081

Closed
@simon-spier0

Description

@simon-spier0

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_pickle.html

Documentation problem

Based on documentation, it accepts parameter path as str. Inside the to_pickle(), the path parameter is put to stringify_path() so it accepts path-like object actually.

Suggested fix for documentation

Adding path-like object to documentation removes warning in PyCharm.
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    DocsTypingtype annotations, mypy/pyright type checking

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions