File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
pandas/tests/io/formats/style Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -317,11 +317,14 @@ def test_bar_color_and_cmap_error_raises():
317
317
318
318
def test_bar_invalid_color_type_error_raises ():
319
319
df = DataFrame ({"A" : [1 , 2 , 3 , 4 ]})
320
- msg = r"`color` must be string or list or tuple of 2 strings,\(eg: color=\['#d65f5f', '#5fba7d'\]\)"
320
+ msg = (
321
+ r"`color` must be string or list or tuple of 2 strings,"
322
+ r"\(eg: color=\['#d65f5f', '#5fba7d'\]\)"
323
+ )
321
324
# Test that providing an invalid color type raises a ValueError
322
325
with pytest .raises (ValueError , match = msg ):
323
326
df .style .bar (color = 123 ).to_html ()
324
327
325
328
# Test that providing a color list with more than two elements raises a ValueError
326
329
with pytest .raises (ValueError , match = msg ):
327
- df .style .bar (color = ['#d65f5f' , '#5fba7d' , '#abcdef' ]).to_html ()
330
+ df .style .bar (color = ['#d65f5f' , '#5fba7d' , '#abcdef' ]).to_html ()
You can’t perform that action at this time.
0 commit comments