File tree 1 file changed +10
-5
lines changed
1 file changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -871,12 +871,17 @@ def _validate_color_args(self):
871
871
"simultaneously. Using 'color'" )
872
872
873
873
if 'color' in self .kwds and self .style is not None :
874
+ if com .is_list_like (self .style ):
875
+ styles = self .style
876
+ else :
877
+ styles = [self .style ]
874
878
# need only a single match
875
- if re .match ('^[a-z]+?' , self .style ) is not None :
876
- raise ValueError ("Cannot pass 'style' string with a color "
877
- "symbol and 'color' keyword argument. Please"
878
- " use one or the other or pass 'style' "
879
- "without a color symbol" )
879
+ for s in styles :
880
+ if re .match ('^[a-z]+?' , s ) is not None :
881
+ raise ValueError ("Cannot pass 'style' string with a color "
882
+ "symbol and 'color' keyword argument. Please"
883
+ " use one or the other or pass 'style' "
884
+ "without a color symbol" )
880
885
881
886
def _iter_data (self , data = None , keep_index = False , fillna = None ):
882
887
if data is None :
You can’t perform that action at this time.
0 commit comments