We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 00d3458 commit ccd74deCopy full SHA for ccd74de
pandas/io/formats/style_render.py
@@ -2069,7 +2069,7 @@ def maybe_convert_css_to_tuples(style: CSSProperties) -> CSSList:
2069
('border','1px solid red')]
2070
"""
2071
if isinstance(style, str):
2072
- if ":" not in style:
+ if style and ":" not in style:
2073
raise ValueError(
2074
"Styles supplied as string must follow CSS rule formats, "
2075
f"for example 'attr: val;'. '{style}' was given."
@@ -2080,7 +2080,7 @@ def maybe_convert_css_to_tuples(style: CSSProperties) -> CSSList:
2080
for x in s
2081
if ":".join(x.split(":")[1:]).strip() != ""
2082
]
2083
-
+
2084
return style
2085
2086
0 commit comments