@@ -754,8 +754,8 @@ def to_latex(
754
754
**Formatting**
755
755
756
756
To format values :meth:`Styler.format` should be used prior to calling
757
- `Styler.to_latex`, as well as other methods such as :meth:`Styler.hide_index `
758
- or :meth:`Styler.hide_columns`, for example:
757
+ `Styler.to_latex`, as well as other methods such as :meth:`Styler.hide `
758
+ for example:
759
759
760
760
>>> s.clear()
761
761
>>> s.table_styles = []
@@ -1106,7 +1106,7 @@ def set_td_classes(self, classes: DataFrame) -> Styler:
1106
1106
>>> df = pd.DataFrame([[1]])
1107
1107
>>> css = pd.DataFrame([["other-class"]])
1108
1108
>>> s = Styler(df, uuid="_", cell_ids=False).set_td_classes(css)
1109
- >>> s.hide_index( ).to_html() # doctest: +SKIP
1109
+ >>> s.hide(axis=0 ).to_html() # doctest: +SKIP
1110
1110
'<style type="text/css"></style>'
1111
1111
'<table id="T__">'
1112
1112
' <thead>'
@@ -1809,7 +1809,7 @@ def export(self) -> dict[str, Any]:
1809
1809
1810
1810
>>> styler = DataFrame([[1, 2], [3, 4]]).style
1811
1811
>>> styler2 = DataFrame([[9, 9, 9]]).style
1812
- >>> styler.hide_index( ).highlight_max(axis=1) # doctest: +SKIP
1812
+ >>> styler.hide(axis=0 ).highlight_max(axis=1) # doctest: +SKIP
1813
1813
>>> export = styler.export()
1814
1814
>>> styler2.use(export) # doctest: +SKIP
1815
1815
"""
@@ -1861,7 +1861,7 @@ def use(self, styles: dict[str, Any]) -> Styler:
1861
1861
1862
1862
>>> styler = DataFrame([[1, 2], [3, 4]]).style
1863
1863
>>> styler2 = DataFrame([[9, 9, 9]]).style
1864
- >>> styler.hide_index( ).highlight_max(axis=1) # doctest: +SKIP
1864
+ >>> styler.hide(axis=0 ).highlight_max(axis=1) # doctest: +SKIP
1865
1865
>>> export = styler.export()
1866
1866
>>> styler2.use(export) # doctest: +SKIP
1867
1867
"""
@@ -1970,8 +1970,8 @@ def set_sticky(
1970
1970
This method uses the CSS 'position: sticky;' property to display. It is
1971
1971
designed to work with visible axes, therefore both:
1972
1972
1973
- - `styler.set_sticky(axis="index").hide_index( )`
1974
- - `styler.set_sticky(axis="columns").hide_columns( )`
1973
+ - `styler.set_sticky(axis="index").hide(axis="index" )`
1974
+ - `styler.set_sticky(axis="columns").hide(axis="columns" )`
1975
1975
1976
1976
may produce strange behaviour due to CSS controls with missing elements.
1977
1977
"""
@@ -2265,7 +2265,7 @@ def hide_index(
2265
2265
.. versionchanged:: 1.3.0
2266
2266
2267
2267
.. deprecated:: 1.4.0
2268
- This method should be replaced by ``hide(axis="columns ", **kwargs)``
2268
+ This method should be replaced by ``hide(axis="index ", **kwargs)``
2269
2269
2270
2270
Parameters
2271
2271
----------
0 commit comments