From e1ea58b5d9cbf194b60ee22497fa7181ec06a139 Mon Sep 17 00:00:00 2001 From: zys5945 Date: Sat, 31 Aug 2019 14:32:15 -0700 Subject: [PATCH 1/2] DOC: fix read_excel and ExcelFile engine parameter description (#28231) --- pandas/io/excel/_base.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pandas/io/excel/_base.py b/pandas/io/excel/_base.py index 997edf49d9e8f..ee29642fcf1b6 100644 --- a/pandas/io/excel/_base.py +++ b/pandas/io/excel/_base.py @@ -112,7 +112,7 @@ engine : str, default None If io is not a buffer or path, this must be set to identify io. - Acceptable values are None or xlrd. + Acceptable values are None, "xlrd", "openpyxl" or "odf". converters : dict, default None Dict of functions for converting values in certain columns. Keys can either be integers or column labels, values are functions that take one @@ -787,7 +787,8 @@ class ExcelFile: If a string or path object, expected to be a path to xls or xlsx file. engine : string, default None If io is not a buffer or path, this must be set to identify io. - Acceptable values are None or ``xlrd``. + Acceptable values are None, ``xlrd``, ``openpyxl`` or ``odf``. + Note that ``odf`` reads tables out of OpenDocument formatted files. """ from pandas.io.excel._odfreader import _ODFReader From 5ab6c8e32d4bea13f01264453e603e35fac9f799 Mon Sep 17 00:00:00 2001 From: zys5945 Date: Thu, 5 Sep 2019 09:13:41 -0700 Subject: [PATCH 2/2] DOC: fix description for ExcelFile class (#28231) --- pandas/io/excel/_base.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pandas/io/excel/_base.py b/pandas/io/excel/_base.py index ee29642fcf1b6..9cdb0b3d7c51b 100644 --- a/pandas/io/excel/_base.py +++ b/pandas/io/excel/_base.py @@ -783,8 +783,8 @@ class ExcelFile: Parameters ---------- io : string, path object (pathlib.Path or py._path.local.LocalPath), - file-like object or xlrd workbook - If a string or path object, expected to be a path to xls or xlsx file. + a file-like object, xlrd workbook or openpypl workbook. + If a string or path object, expected to be a path to xls, xlsx or odf file. engine : string, default None If io is not a buffer or path, this must be set to identify io. Acceptable values are None, ``xlrd``, ``openpyxl`` or ``odf``.