@@ -68,11 +68,11 @@ class Styler(object):
68
68
Notes
69
69
-----
70
70
Most styling will be done by passing style functions into
71
- Styler.apply or Styler.applymap. Style functions should
72
- return values with strings containing CSS 'attr: value' that will
71
+ `` Styler.apply`` or `` Styler.applymap`` . Style functions should
72
+ return values with strings containing CSS `` 'attr: value'`` that will
73
73
be applied to the indicated cells.
74
74
75
- If using in the Jupyter notebook, Styler has defined a _repr_html_
75
+ If using in the Jupyter notebook, Styler has defined a `` _repr_html_``
76
76
to automatically render itself. Otherwise call Styler.render to get
77
77
the genterated HTML.
78
78
@@ -306,6 +306,10 @@ def __deepcopy__(self, memo):
306
306
return self ._copy (deepcopy = True )
307
307
308
308
def clear (self ):
309
+ '''
310
+ "Reset" the styler, removing any previously applied styles.
311
+ Returns None.
312
+ '''
309
313
self .ctx .clear ()
310
314
self ._todo = []
311
315
@@ -360,9 +364,9 @@ def apply(self, func, axis=0, subset=None, **kwargs):
360
364
361
365
Notes
362
366
-----
363
- This is similar to DataFrame.apply, except that axis=None applies
364
- the function to the entire DataFrame at once, rather tha column
365
- or rowwise .
367
+ This is similar to `` DataFrame.apply`` , except that `` axis=None``
368
+ applies the function to the entire DataFrame at once,
369
+ rather than column-wise or row-wise .
366
370
"""
367
371
self ._todo .append ((lambda instance : getattr (instance , '_apply' ),
368
372
(func , axis , subset ),
@@ -424,7 +428,7 @@ def set_precision(self, precision):
424
428
def set_table_attributes (self , attributes ):
425
429
"""
426
430
Set the table attributes. These are the items
427
- that show up in the opening <table> tag in addition
431
+ that show up in the opening `` <table>`` tag in addition
428
432
to to automatic (by default) id.
429
433
430
434
.. versionadded:: 0.17.1
@@ -443,7 +447,7 @@ def set_table_attributes(self, attributes):
443
447
def export (self ):
444
448
"""
445
449
Export the styles to applied to the current Styler.
446
- Can be applied to a second style with `.use`.
450
+ Can be applied to a second style with ``Styler .use` `.
447
451
448
452
.. versionadded:: 0.17.1
449
453
@@ -460,7 +464,7 @@ def export(self):
460
464
def use (self , styles ):
461
465
"""
462
466
Set the styles on the current Styler, possibly using styles
463
- from `Styler.export`
467
+ from `` Styler.export``.
464
468
465
469
.. versionadded:: 0.17.1
466
470
0 commit comments