Closed
Description
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/stable/reference/api/pandas.read_fwf.html
Documentation problem
Under the Parameters for pandas.read_fwf()
, specifically the param colspecs
, the description is as below:
**colspecs : list of tuple (int, int) or ‘infer’. optional **
A list of tuples giving the extents of the fixed-width fields of each line as half-open intervals (i.e., [from, to[ ). String value ‘infer’ can be used to instruct the parser to try detecting the column specifications from the first 100 rows of the data which are not being skipped via skiprows (default=’infer’).
Note that that closing square bracket in the example is also a left square bracket "[".
Suggested fix for documentation
The suggested fix is simply to replace the "[" with the correct closing "]" square bracket.