Skip to content

Commit 6d3ffc6

Browse files
committed
Lint
1 parent 79eae41 commit 6d3ffc6

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

pandas/formats/excel.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -235,9 +235,9 @@ def build_font(self, props):
235235
'size': size,
236236
'bold': self.BOLD_MAP.get(props.get('font-weight')),
237237
'italic': self.ITALIC_MAP.get(props.get('font-style')),
238-
'underline': ('single'
239-
if decoration is not None
240-
and 'underline' in decoration
238+
'underline': ('single' if
239+
decoration is not None and
240+
'underline' in decoration`
241241
else None),
242242
'strike': (None if decoration is None
243243
else 'line-through' in decoration),

pandas/formats/style.py

-1
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,6 @@ def to_excel(self, excel_writer, sheet_name='Sheet1', na_rep='',
217217
startcol=startcol, freeze_panes=freeze_panes,
218218
engine=engine)
219219

220-
221220
def _translate(self):
222221
"""
223222
Convert the DataFrame in `self.data` and the attrs from `_build_styles`

pandas/io/excel.py

-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
string_types, OrderedDict)
2525
from pandas.core import config
2626
from pandas.formats.printing import pprint_thing
27-
from pandas.formats.excel import ExcelFormatter
2827
import pandas.compat as compat
2928
import pandas.compat.openpyxl_compat as openpyxl_compat
3029
from warnings import warn

0 commit comments

Comments
 (0)