Skip to content

Commit 37d903f

Browse files
DOC trying to improve readability of example (#51634)
* DOC removed parentheses for readability * minor nit --------- Co-authored-by: Marco Edward Gorelli <[email protected]>
1 parent e057427 commit 37d903f

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

pandas/errors/__init__.py

+8-6
Original file line numberDiff line numberDiff line change
@@ -455,12 +455,14 @@ class CSSWarning(UserWarning):
455455
Examples
456456
--------
457457
>>> df = pd.DataFrame({'A': [1, 1, 1]})
458-
>>> (df.style.applymap(lambda x: 'background-color: blueGreenRed;')
459-
... .to_excel('styled.xlsx')) # doctest: +SKIP
460-
... # CSSWarning: Unhandled color format: 'blueGreenRed'
461-
>>> (df.style.applymap(lambda x: 'border: 1px solid red red;')
462-
... .to_excel('styled.xlsx')) # doctest: +SKIP
463-
... # CSSWarning: Too many tokens provided to "border" (expected 1-3)
458+
>>> df.style.applymap(
459+
... lambda x: 'background-color: blueGreenRed;'
460+
... ).to_excel('styled.xlsx') # doctest: +SKIP
461+
CSSWarning: Unhandled color format: 'blueGreenRed'
462+
>>> df.style.applymap(
463+
... lambda x: 'border: 1px solid red red;'
464+
... ).to_excel('styled.xlsx') # doctest: +SKIP
465+
CSSWarning: Unhandled color format: 'blueGreenRed'
464466
"""
465467

466468

0 commit comments

Comments
 (0)