Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
1 task done
danlsn opened this issue Mar 22, 2024 · 1 comment · Fixed by #57961
Closed
1 task done

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

danlsn opened this issue Mar 22, 2024 · 1 comment · Fixed by #57961
Assignees
Labels

Comments

@danlsn
Copy link
Contributor

danlsn commented Mar 22, 2024

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.

@danlsn danlsn added Docs Needs Triage Issue that has not been reviewed by a pandas team member labels Mar 22, 2024
@danlsn
Copy link
Contributor Author

danlsn commented Mar 22, 2024

take

danlsn added a commit to danlsn/pandas that referenced this issue Mar 22, 2024
…7959)

- change closing square bracket in colspecs description to correct "]"
@lithomas1 lithomas1 removed the Needs Triage Issue that has not been reviewed by a pandas team member label Mar 22, 2024
lithomas1 pushed a commit that referenced this issue Mar 22, 2024
)

- change closing square bracket in colspecs description to correct "]"
pmhatre1 pushed a commit to pmhatre1/pandas-pmhatre1 that referenced this issue May 7, 2024
…7959) (pandas-dev#57961)

- change closing square bracket in colspecs description to correct "]"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
2 participants