Skip to content

Commit 73b3fd3

Browse files
committed
ENH: pep8 line length
1 parent 0ccedc2 commit 73b3fd3

File tree

2 files changed

+11
-9
lines changed

2 files changed

+11
-9
lines changed

pandas/io/formats/style.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -825,11 +825,12 @@ def set_tooltips(self, ttips: DataFrame):
825825
Notes
826826
-----
827827
Tooltips are created by adding `<span class="pd-t"></span>` to each data cell
828-
and then manipulating the table level CSS to attach pseudo hover and pseudo after
829-
selectors to produce the required the results. For styling control
828+
and then manipulating the table level CSS to attach pseudo hover and pseudo
829+
after selectors to produce the required the results. For styling control
830830
see `:meth:Styler.set_tooltips_class`.
831-
Tooltips are not designed to be efficient, and can add large amounts of additional
832-
HTML for larger tables, since they also require that `cell_ids` is forced to `True`.
831+
Tooltips are not designed to be efficient, and can add large amounts of
832+
additional HTML for larger tables, since they also require that `cell_ids`
833+
is forced to `True`.
833834
834835
:param ttips:
835836
:return:
@@ -876,7 +877,8 @@ def set_tooltips(self, ttips: DataFrame):
876877

877878
def set_tooltip_class(self, name="pd-t", properties=None):
878879
"""
879-
Method to set the name and properties of the class for creating tooltips on hover.
880+
Method to set the name and properties of the class for creating tooltips on
881+
hover.
880882
881883
Parameters
882884
----------

pandas/tests/io/formats/test_style.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1702,14 +1702,14 @@ def test_tooltip_render(self):
17021702
assert "#T__ .pd-t {" in s.render()
17031703
# test 'min' tooltip added
17041704
assert (
1705-
"#T__ #T__row0_col0:hover .pd-t {\n visibility: visible;\n } "
1706-
+ '#T__ #T__row0_col0 .pd-t::after {\n content: "Min";\n }'
1705+
"#T__ #T__row0_col0:hover .pd-t {\n visibility: visible;\n } "
1706+
+ ' #T__ #T__row0_col0 .pd-t::after {\n content: "Min";\n }'
17071707
in s.render()
17081708
)
17091709
# test 'max' tooltip added
17101710
assert (
1711-
"#T__ #T__row1_col1:hover .pd-t {\n visibility: visible;\n } "
1712-
+ '#T__ #T__row1_col1 .pd-t::after {\n content: "Max";\n }'
1711+
"#T__ #T__row1_col1:hover .pd-t {\n visibility: visible;\n } "
1712+
+ ' #T__ #T__row1_col1 .pd-t::after {\n content: "Max";\n }'
17131713
in s.render()
17141714
)
17151715

0 commit comments

Comments
 (0)