You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If None then parse all columns,
If int then indicates last column to be parsed
If list of ints then indicates list of column numbers to be parsed
If string then indicates comma separated list of column names and column ranges (e.g. “A:E” or “A,C,E:F”)
"
I think the formulation "column names" is ambiguous, as it can refer to "columns letters" or "columns header", because of Excel terminology.
"Column names" as "headers" actually don't work as entries for this function.
In addition, slices don't work as usual, as they include the last column of the slice. This is unexpected behavior given the usual python slicing modus operandi, and if it is not changed, it should be at least documented (I feel like it should be both, as we should stay true to language syntax and document it as it can be confusing, as A:D in vba/excel language includes D).
The text was updated successfully, but these errors were encountered:
Note that we slightly break with python convention when slicing labels and include the endpoint (e.g. docs here - I think the same behavior is appropriate here.
chris-b1
changed the title
Docs - pandas.read_excel
DOC: read_excel - improve parse_cols docstring
Jun 2, 2017
Uh oh!
There was an error while loading. Please reload this page.
http://pandas.pydata.org/pandas-docs/stable/generated/pandas.read_excel.html#pandas.read_excel
"parse_cols : int or list, default None
"
I think the formulation "column names" is ambiguous, as it can refer to "columns letters" or "columns header", because of Excel terminology.
"Column names" as "headers" actually don't work as entries for this function.
In addition, slices don't work as usual, as they include the last column of the slice. This is unexpected behavior given the usual python slicing modus operandi, and if it is not changed, it should be at least documented (I feel like it should be both, as we should stay true to language syntax and document it as it can be confusing, as A:D in vba/excel language includes D).
The text was updated successfully, but these errors were encountered: