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
BUG: read_excel return empty dataframe when using usecols
closespandas-dev#18273
tests added/passed
passes git diff master --name-only -- "*.py" | grep "pandas/" | xargs -r flake8
whatsnew entry
As mentioned read_excel returns an empty DataFrame when usecols argument is a list of strings.
Now lists of strings are correctly interpreted by read_excel function.
Copy file name to clipboardExpand all lines: doc/source/whatsnew/v0.23.0.txt
+1
Original file line number
Diff line number
Diff line change
@@ -983,6 +983,7 @@ I/O
983
983
- Bug in :meth:`pandas.io.stata.StataReader.value_labels` raising an ``AttributeError`` when called on very old files. Now returns an empty dict (:issue:`19417`)
984
984
- Bug in :func:`read_pickle` when unpickling objects with :class:`TimedeltaIndex` or :class:`Float64Index` created with pandas prior to version 0.20 (:issue:`19939`)
985
985
- Bug in :meth:`pandas.io.json.json_normalize` where subrecords are not properly normalized if any subrecords values are NoneType (:issue:`20030`)
986
+
- Bug in :func:`read_excel` where read_excel return empty ``DataFrame`` when using ``usecols`` argument as a list of strings (:issue:`18273`)
0 commit comments