diff --git a/ci/code_checks.sh b/ci/code_checks.sh index 76cc02652ec24..25317a08ca7b0 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -294,34 +294,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/core/generic.py b/pandas/core/generic.py index 61fa5c49a8c5b..eae3249aa79a4 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -2123,11 +2123,13 @@ def _repr_data_resource_(self): klass="object", storage_options=_shared_docs["storage_options"], storage_options_versionadded="1.2.0", + encoding_parameter="", + verbose_parameter="", extra_parameters=textwrap.dedent( """\ engine_kwargs : dict, optional Arbitrary keyword arguments passed to excel engine. - """ + """ ), ) def to_excel( @@ -2196,9 +2198,11 @@ def to_excel( merge_cells : bool, default True Write MultiIndex and Hierarchical Rows as merged cells. + {encoding_parameter} inf_rep : str, default 'inf' Representation for infinity (there is no native representation for infinity in Excel). + {verbose_parameter} freeze_panes : tuple of int (length 2), optional Specifies the one-based bottommost row and rightmost column that is to be frozen. diff --git a/pandas/io/formats/style.py b/pandas/io/formats/style.py index 6f4c2fa6c6eae..82bc0301fed3a 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 + ```` HTML element. + Styler.set_table_styles : Set the table styles included within the + ``