Pandas version checks
- [X] 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
Comment From: twoertwein
Are you saying that it doesn't support something like "/path/to/file"
or it doesn't support something like "a,b,c\n1,2,3"
(string containing the content). The first one (str containing a path) should work? The second one is not intended to work.