Skip to content

DOC: Flipped square bracket in pandas.read_fwf documentation #57959

Closed
@danlsn

Description

@danlsn

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.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions