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
The idea is that we read the Excel file,
get the data, and then let the TextParser
handle the reading and parsing.
We shouldn't be doing a lot of work that
is already defined in parsers.py
In doing so, we identified several bugs:
* index_col=None was not being respected
* usecols behavior was inconsistent with
that of read_csv for list of strings and
callable inputs
* usecols was not being validated as proper
Excel column names when passed as a string.
Closespandas-devgh-18273.
Closespandas-devgh-20480.
Copy file name to clipboardExpand all lines: doc/source/whatsnew/v0.24.0.txt
+3
Original file line number
Diff line number
Diff line change
@@ -1289,6 +1289,9 @@ Notice how we now instead output ``np.nan`` itself instead of a stringified form
1289
1289
- Bug in :func:`DataFrame.to_csv` where a single level MultiIndex incorrectly wrote a tuple. Now just the value of the index is written (:issue:`19589`).
1290
1290
- Bug in :meth:`HDFStore.append` when appending a :class:`DataFrame` with an empty string column and ``min_itemsize`` < 8 (:issue:`12242`)
1291
1291
- Bug in :meth:`read_csv()` in which :class:`MultiIndex` index names were being improperly handled in the cases when they were not provided (:issue:`23484`)
1292
+
- Bug in :meth:`read_excel()` in which passing a list of column names to the ``usecols`` parameter returned an empty :class:`DataFrame` (:issue:`18273`)
1293
+
- Bug in :meth:`read_excel()` in which ``index_col=None`` was not being respected and parsing index columns anyway (:issue:`20480`)
1294
+
- Bug in :meth:`read_excel()` in which ``usecols`` was not being validated for proper column names when passed in as a string (:issue:`20480`)
0 commit comments