Skip to content

Commit 813123b

Browse files
zys5945WillAyd
authored andcommitted
DOC: fix read_excel and ExcelFile engine parameter description (#28231) (#28245)
1 parent 2915223 commit 813123b

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

pandas/io/excel/_base.py

+5-4
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@
112112
113113
engine : str, default None
114114
If io is not a buffer or path, this must be set to identify io.
115-
Acceptable values are None or xlrd.
115+
Acceptable values are None, "xlrd", "openpyxl" or "odf".
116116
converters : dict, default None
117117
Dict of functions for converting values in certain columns. Keys can
118118
either be integers or column labels, values are functions that take one
@@ -783,11 +783,12 @@ class ExcelFile:
783783
Parameters
784784
----------
785785
io : string, path object (pathlib.Path or py._path.local.LocalPath),
786-
file-like object or xlrd workbook
787-
If a string or path object, expected to be a path to xls or xlsx file.
786+
a file-like object, xlrd workbook or openpypl workbook.
787+
If a string or path object, expected to be a path to xls, xlsx or odf file.
788788
engine : string, default None
789789
If io is not a buffer or path, this must be set to identify io.
790-
Acceptable values are None or ``xlrd``.
790+
Acceptable values are None, ``xlrd``, ``openpyxl`` or ``odf``.
791+
Note that ``odf`` reads tables out of OpenDocument formatted files.
791792
"""
792793

793794
from pandas.io.excel._odfreader import _ODFReader

0 commit comments

Comments
 (0)