From d51f2eb41011e8c6def2f7336311d8527df2e18b Mon Sep 17 00:00:00 2001 From: Tuhin Sharma Date: Mon, 14 Oct 2024 09:02:23 +0530 Subject: [PATCH] DOC: fix SA01 for pandas.errors.CSSWarning --- ci/code_checks.sh | 1 - pandas/errors/__init__.py | 8 ++++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ci/code_checks.sh b/ci/code_checks.sh index 1974c98a1d1ff..ae6a8d0f88b13 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -133,7 +133,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then -i "pandas.core.resample.Resampler.transform PR01,RT03,SA01" \ -i "pandas.core.resample.Resampler.var SA01" \ -i "pandas.errors.AttributeConflictWarning SA01" \ - -i "pandas.errors.CSSWarning SA01" \ -i "pandas.errors.ChainedAssignmentError SA01" \ -i "pandas.errors.DataError SA01" \ -i "pandas.errors.DuplicateLabelError SA01" \ diff --git a/pandas/errors/__init__.py b/pandas/errors/__init__.py index efc032b0b559e..6f6c8ded17319 100644 --- a/pandas/errors/__init__.py +++ b/pandas/errors/__init__.py @@ -591,6 +591,14 @@ class CSSWarning(UserWarning): This can be due to the styling not having an equivalent value or because the styling isn't properly formatted. + See Also + -------- + DataFrame.style : Returns a Styler object for applying CSS-like styles. + io.formats.style.Styler : Helps style a DataFrame or Series according to the + data with HTML and CSS. + io.formats.style.Styler.to_excel : Export styled DataFrame to Excel. + io.formats.style.Styler.to_html : Export styled DataFrame to HTML. + Examples -------- >>> df = pd.DataFrame({"A": [1, 1, 1]})