diff --git a/pandas/errors/__init__.py b/pandas/errors/__init__.py index 3ecee50ffbaa7..c4b804de6a110 100644 --- a/pandas/errors/__init__.py +++ b/pandas/errors/__init__.py @@ -455,12 +455,14 @@ class CSSWarning(UserWarning): Examples -------- >>> df = pd.DataFrame({'A': [1, 1, 1]}) - >>> (df.style.applymap(lambda x: 'background-color: blueGreenRed;') - ... .to_excel('styled.xlsx')) # doctest: +SKIP - ... # CSSWarning: Unhandled color format: 'blueGreenRed' - >>> (df.style.applymap(lambda x: 'border: 1px solid red red;') - ... .to_excel('styled.xlsx')) # doctest: +SKIP - ... # CSSWarning: Too many tokens provided to "border" (expected 1-3) + >>> df.style.applymap( + ... lambda x: 'background-color: blueGreenRed;' + ... ).to_excel('styled.xlsx') # doctest: +SKIP + CSSWarning: Unhandled color format: 'blueGreenRed' + >>> df.style.applymap( + ... lambda x: 'border: 1px solid red red;' + ... ).to_excel('styled.xlsx') # doctest: +SKIP + CSSWarning: Unhandled color format: 'blueGreenRed' """