diff --git a/ci/code_checks.sh b/ci/code_checks.sh index 2d260c78a8f33..32413f1ce0a1c 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -305,34 +305,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then -i "pandas.errors.UnsupportedFunctionCall SA01" \ -i "pandas.errors.ValueLabelTypeMismatch SA01" \ -i "pandas.infer_freq SA01" \ - -i "pandas.io.formats.style.Styler.apply RT03" \ - -i "pandas.io.formats.style.Styler.apply_index RT03" \ - -i "pandas.io.formats.style.Styler.background_gradient RT03" \ - -i "pandas.io.formats.style.Styler.bar RT03,SA01" \ - -i "pandas.io.formats.style.Styler.clear SA01" \ - -i "pandas.io.formats.style.Styler.concat RT03,SA01" \ - -i "pandas.io.formats.style.Styler.export RT03" \ - -i "pandas.io.formats.style.Styler.from_custom_template SA01" \ - -i "pandas.io.formats.style.Styler.hide RT03,SA01" \ - -i "pandas.io.formats.style.Styler.highlight_between RT03" \ - -i "pandas.io.formats.style.Styler.highlight_max RT03" \ - -i "pandas.io.formats.style.Styler.highlight_min RT03" \ - -i "pandas.io.formats.style.Styler.highlight_null RT03" \ - -i "pandas.io.formats.style.Styler.highlight_quantile RT03" \ - -i "pandas.io.formats.style.Styler.map RT03" \ - -i "pandas.io.formats.style.Styler.map_index RT03" \ - -i "pandas.io.formats.style.Styler.set_caption RT03,SA01" \ - -i "pandas.io.formats.style.Styler.set_properties RT03,SA01" \ - -i "pandas.io.formats.style.Styler.set_sticky RT03,SA01" \ - -i "pandas.io.formats.style.Styler.set_table_attributes PR07,RT03" \ - -i "pandas.io.formats.style.Styler.set_table_styles RT03" \ - -i "pandas.io.formats.style.Styler.set_td_classes RT03" \ - -i "pandas.io.formats.style.Styler.set_tooltips RT03,SA01" \ - -i "pandas.io.formats.style.Styler.set_uuid PR07,RT03,SA01" \ - -i "pandas.io.formats.style.Styler.text_gradient RT03" \ - -i "pandas.io.formats.style.Styler.to_excel PR01" \ - -i "pandas.io.formats.style.Styler.to_string SA01" \ - -i "pandas.io.formats.style.Styler.use RT03" \ -i "pandas.io.json.build_table_schema PR07,RT03,SA01" \ -i "pandas.io.stata.StataReader.data_label SA01" \ -i "pandas.io.stata.StataReader.value_labels RT03,SA01" \ diff --git a/pandas/io/formats/style.py b/pandas/io/formats/style.py index 6f4c2fa6c6eae..ae2fba4f7269b 100644 --- a/pandas/io/formats/style.py +++ b/pandas/io/formats/style.py @@ -7,6 +7,7 @@ import copy from functools import partial import operator +import textwrap from typing import ( TYPE_CHECKING, overload, @@ -306,6 +307,12 @@ def concat(self, other: Styler) -> Styler: Returns ------- Styler + Instance of class with specified Styler appended. + + See Also + -------- + Styler.clear : Reset the ``Styler``, removing any previously applied styles. + Styler.export : Export the styles applied to the current Styler. Notes ----- @@ -447,6 +454,15 @@ def set_tooltips( Returns ------- Styler + Instance of class with DataFrame set for strings on ``Styler`` + generating ``:hover`` tooltips. + + See Also + -------- + Styler.set_table_attributes : Set the table attributes added to the + ``