Skip to content

DOC: read_fwf claims to support a [str] in the first argument #55790

@koubaa

Description

@koubaa

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/pandas-docs/version/2.0/reference/api/pandas.read_fwf.html

Documentation problem

read_fwf does not support a string type in the filepath_or_buffer argument.

Parameters:
filepath_or_buffer : str, path object, or file-like object
String, path object (implementing os.PathLike[str]), or file-like object implementing a text read() function.The string could be a URL. Valid URL schemes include http, ftp, s3, and file. For file URLs, a host is expected. A local file could be: file://localhost/path/to/table.csv.

Suggested fix for documentation

remove str/string from this parameter documentation

Metadata

Metadata

Assignees

No one assigned

    Labels

    DocsIO Fixed Widthread_fwfNeeds TriageIssue that has not been reviewed by a pandas team member

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions