@@ -574,6 +574,7 @@ def __deepcopy__(self, memo):
574
574
def clear (self ):
575
575
"""
576
576
Reset the styler, removing any previously applied styles.
577
+
577
578
Returns None.
578
579
"""
579
580
self .ctx .clear ()
@@ -632,8 +633,9 @@ def _apply(self, func, axis=0, subset=None, **kwargs):
632
633
633
634
def apply (self , func , axis = 0 , subset = None , ** kwargs ):
634
635
"""
635
- Apply a function column-wise, row-wise, or table-wise,
636
- updating the HTML representation with the result.
636
+ Apply a function column-wise, row-wise, or table-wise.
637
+
638
+ Updates the HTML representation with the result.
637
639
638
640
Parameters
639
641
----------
@@ -691,8 +693,9 @@ def _applymap(self, func, subset=None, **kwargs):
691
693
692
694
def applymap (self , func , subset = None , ** kwargs ):
693
695
"""
694
- Apply a function elementwise, updating the HTML
695
- representation with the result.
696
+ Apply a function elementwise.
697
+
698
+ Updates the HTML representation with the result.
696
699
697
700
Parameters
698
701
----------
@@ -719,9 +722,10 @@ def applymap(self, func, subset=None, **kwargs):
719
722
720
723
def where (self , cond , value , other = None , subset = None , ** kwargs ):
721
724
"""
722
- Apply a function elementwise, updating the HTML
723
- representation with a style which is selected in
724
- accordance with the return value of a function.
725
+ Apply a function elementwise.
726
+
727
+ Updates the HTML representation with a style which is
728
+ selected in accordance with the return value of a function.
725
729
726
730
.. versionadded:: 0.21.0
727
731
@@ -812,8 +816,9 @@ def export(self):
812
816
813
817
def use (self , styles ):
814
818
"""
815
- Set the styles on the current Styler, possibly using styles
816
- from ``Styler.export``.
819
+ Set the styles on the current Styler.
820
+
821
+ Possibly uses styles from ``Styler.export``.
817
822
818
823
Parameters
819
824
----------
@@ -960,10 +965,10 @@ def background_gradient(
960
965
text_color_threshold = 0.408 ,
961
966
):
962
967
"""
963
- Color the background in a gradient according to
964
- the data in each column (optionally row).
968
+ Color the background in a gradient style.
965
969
966
- Requires matplotlib.
970
+ The background color is determined according
971
+ to the data in each column (optionally row). Requires matplotlib.
967
972
968
973
Parameters
969
974
----------
@@ -1077,8 +1082,7 @@ def css(rgba):
1077
1082
1078
1083
def set_properties (self , subset = None , ** kwargs ):
1079
1084
"""
1080
- Convenience method for setting one or more non-data dependent
1081
- properties or each cell.
1085
+ Method to set one or more non-data dependent properties or each cell.
1082
1086
1083
1087
Parameters
1084
1088
----------
@@ -1318,8 +1322,9 @@ def _highlight_extrema(data, color="yellow", max_=True):
1318
1322
@classmethod
1319
1323
def from_custom_template (cls , searchpath , name ):
1320
1324
"""
1321
- Factory function for creating a subclass of ``Styler``
1322
- with a custom template and Jinja environment.
1325
+ Factory function for creating a subclass of ``Styler``.
1326
+
1327
+ Uses a custom template and Jinja environment.
1323
1328
1324
1329
Parameters
1325
1330
----------
0 commit comments