Skip to content

Commit 77b6c9a

Browse files
committed
ENH: pep8 line length
1 parent 9622de4 commit 77b6c9a

File tree

2 files changed

+11
-9
lines changed

2 files changed

+11
-9
lines changed

pandas/io/formats/style.py

+7-5
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

+4-4
Original file line numberDiff line numberDiff line change
@@ -1699,14 +1699,14 @@ def test_tooltip_render(self):
16991699
assert "#T__ .pd-t {" in s.render()
17001700
# test 'min' tooltip added
17011701
assert (
1702-
"#T__ #T__row0_col0:hover .pd-t {\n visibility: visible;\n } "
1703-
+ '#T__ #T__row0_col0 .pd-t::after {\n content: "Min";\n }'
1702+
"#T__ #T__row0_col0:hover .pd-t {\n visibility: visible;\n } "
1703+
+ ' #T__ #T__row0_col0 .pd-t::after {\n content: "Min";\n }'
17041704
in s.render()
17051705
)
17061706
# test 'max' tooltip added
17071707
assert (
1708-
"#T__ #T__row1_col1:hover .pd-t {\n visibility: visible;\n } "
1709-
+ '#T__ #T__row1_col1 .pd-t::after {\n content: "Max";\n }'
1708+
"#T__ #T__row1_col1:hover .pd-t {\n visibility: visible;\n } "
1709+
+ ' #T__ #T__row1_col1 .pd-t::after {\n content: "Max";\n }'
17101710
in s.render()
17111711
)
17121712

0 commit comments

Comments
 (0)