122
122
123
123
.. versionadded:: 0.20.0
124
124
125
- engine: string, default None
125
+ engine : string, default None
126
126
If io is not a buffer or path, this must be set to identify io.
127
127
Acceptable values are None or xlrd
128
128
converters : dict, default None
@@ -368,7 +368,7 @@ class ExcelFile(object):
368
368
io : string, path object (pathlib.Path or py._path.local.LocalPath),
369
369
file-like object or xlrd workbook
370
370
If a string or path object, expected to be a path to xls or xlsx file
371
- engine: string, default None
371
+ engine : string, default None
372
372
If io is not a buffer or path, this must be set to identify io.
373
373
Acceptable values are None or xlrd
374
374
"""
@@ -1011,8 +1011,8 @@ def write_cells(self, cells, sheet_name=None, startrow=0, startcol=0,
1011
1011
cell of formatted data to save to Excel sheet
1012
1012
sheet_name : string, default None
1013
1013
Name of Excel sheet, if None, then use self.cur_sheet
1014
- startrow: upper left cell row to dump data frame
1015
- startcol: upper left cell column to dump data frame
1014
+ startrow : upper left cell row to dump data frame
1015
+ startcol : upper left cell column to dump data frame
1016
1016
freeze_panes: integer tuple of length 2
1017
1017
contains the bottom-most row and right-most column to freeze
1018
1018
"""
@@ -1159,7 +1159,7 @@ def _convert_to_style(cls, style_dict):
1159
1159
converts a style_dict to an openpyxl style object
1160
1160
Parameters
1161
1161
----------
1162
- style_dict: style dictionary to convert
1162
+ style_dict : style dictionary to convert
1163
1163
"""
1164
1164
1165
1165
from openpyxl .style import Style
@@ -1652,15 +1652,15 @@ def _style_to_xlwt(cls, item, firstlevel=True, field_sep=',',
1652
1652
for example:
1653
1653
1654
1654
hstyle = {"font": {"bold": True},
1655
- "border": {"top": "thin",
1656
- "right": "thin",
1657
- "bottom": "thin",
1658
- "left": "thin"},
1659
- "align": {"horiz": "center"}}
1655
+ "border" : {"top": "thin",
1656
+ "right": "thin",
1657
+ "bottom": "thin",
1658
+ "left": "thin"},
1659
+ "align" : {"horiz": "center"}}
1660
1660
will be converted to
1661
- font: bold on; \
1662
- border: top thin, right thin, bottom thin, left thin; \
1663
- align: horiz center;
1661
+ font : bold on; \
1662
+ border : top thin, right thin, bottom thin, left thin; \
1663
+ align : horiz center;
1664
1664
"""
1665
1665
if hasattr (item , 'items' ):
1666
1666
if firstlevel :
@@ -1687,8 +1687,8 @@ def _convert_to_style(cls, style_dict, num_format_str=None):
1687
1687
converts a style_dict to an xlwt style object
1688
1688
Parameters
1689
1689
----------
1690
- style_dict: style dictionary to convert
1691
- num_format_str: optional number format string
1690
+ style_dict : style dictionary to convert
1691
+ num_format_str : optional number format string
1692
1692
"""
1693
1693
import xlwt
1694
1694
@@ -1790,8 +1790,8 @@ def convert(cls, style_dict, num_format_str=None):
1790
1790
1791
1791
Parameters
1792
1792
----------
1793
- style_dict: style dictionary to convert
1794
- num_format_str: optional number format string
1793
+ style_dict : style dictionary to convert
1794
+ num_format_str : optional number format string
1795
1795
"""
1796
1796
1797
1797
# Create a XlsxWriter format object.
0 commit comments