Skip to content

Commit 40cab0a

Browse files
committed
Remove strict parameter from zip where lengths can differ
The comment explicitly states that 'unique and colors length can be differed depending on slice value', so strict=True should not be used in this zip() call as it would raise ValueError when lengths don't match. Fixes test failures in plotting tests.
1 parent 78bc88c commit 40cab0a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/tests/plotting/common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ def _get_colors_mapped(series, colors):
127127
unique = series.unique()
128128
# unique and colors length can be differed
129129
# depending on slice value
130-
mapped = dict(zip(unique, colors, strict=True))
130+
mapped = dict(zip(unique, colors))
131131
return [mapped[v] for v in series.values]
132132

133133

0 commit comments

Comments
 (0)