diff --git a/pandas/io/excel/_base.py b/pandas/io/excel/_base.py index 6dba5e042562b7..039a0560af627c 100644 --- a/pandas/io/excel/_base.py +++ b/pandas/io/excel/_base.py @@ -532,15 +532,15 @@ class ExcelWriter(metaclass=abc.ABCMeta): Parameters ---------- - path : string + path : str Path to xls or xlsx file. - engine : string (optional) + engine : str (optional) Engine to use for writing. If None, defaults to ``io.excel..writer``. NOTE: can only be passed as a keyword argument. - date_format : string, default None + date_format : str, default None Format string for dates written into Excel files (e.g. 'YYYY-MM-DD') - datetime_format : string, default None + datetime_format : str, default None Format string for datetime objects written into Excel files (e.g. 'YYYY-MM-DD HH:MM:SS') mode : {'w', 'a'}, default 'w' @@ -658,11 +658,11 @@ def write_cells( ---------- cells : generator cell of formatted data to save to Excel sheet - sheet_name : string, default None + sheet_name : str, default None Name of Excel sheet, if None, then use self.cur_sheet startrow : upper left cell row to dump data frame startcol : upper left cell column to dump data frame - freeze_panes: integer tuple of length 2 + freeze_panes: int tuple of length 2 contains the bottom-most row and right-most column to freeze """ pass @@ -782,10 +782,10 @@ class ExcelFile: Parameters ---------- - io : string, path object (pathlib.Path or py._path.local.LocalPath), + io : str, path object (pathlib.Path or py._path.local.LocalPath), 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 + engine : str, 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``. Note that ``odf`` reads tables out of OpenDocument formatted files.