Skip to content

Commit 7721f31

Browse files
LauraCollardsimonjayhawkins
authored andcommitted
DOC: Fixed PR06 docstrings errors in pandas.ExcelWriter (#28723)
1 parent 02675e3 commit 7721f31

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

pandas/io/excel/_base.py

+8-8
Original file line numberDiff line numberDiff line change
@@ -532,15 +532,15 @@ class ExcelWriter(metaclass=abc.ABCMeta):
532532
533533
Parameters
534534
----------
535-
path : string
535+
path : str
536536
Path to xls or xlsx file.
537-
engine : string (optional)
537+
engine : str (optional)
538538
Engine to use for writing. If None, defaults to
539539
``io.excel.<extension>.writer``. NOTE: can only be passed as a keyword
540540
argument.
541-
date_format : string, default None
541+
date_format : str, default None
542542
Format string for dates written into Excel files (e.g. 'YYYY-MM-DD')
543-
datetime_format : string, default None
543+
datetime_format : str, default None
544544
Format string for datetime objects written into Excel files
545545
(e.g. 'YYYY-MM-DD HH:MM:SS')
546546
mode : {'w', 'a'}, default 'w'
@@ -658,11 +658,11 @@ def write_cells(
658658
----------
659659
cells : generator
660660
cell of formatted data to save to Excel sheet
661-
sheet_name : string, default None
661+
sheet_name : str, default None
662662
Name of Excel sheet, if None, then use self.cur_sheet
663663
startrow : upper left cell row to dump data frame
664664
startcol : upper left cell column to dump data frame
665-
freeze_panes: integer tuple of length 2
665+
freeze_panes: int tuple of length 2
666666
contains the bottom-most row and right-most column to freeze
667667
"""
668668
pass
@@ -782,10 +782,10 @@ class ExcelFile:
782782
783783
Parameters
784784
----------
785-
io : string, path object (pathlib.Path or py._path.local.LocalPath),
785+
io : str, path object (pathlib.Path or py._path.local.LocalPath),
786786
a file-like object, xlrd workbook or openpypl workbook.
787787
If a string or path object, expected to be a path to xls, xlsx or odf file.
788-
engine : string, default None
788+
engine : str, default None
789789
If io is not a buffer or path, this must be set to identify io.
790790
Acceptable values are None, ``xlrd``, ``openpyxl`` or ``odf``.
791791
Note that ``odf`` reads tables out of OpenDocument formatted files.

0 commit comments

Comments
 (0)