Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit fb39dfe

Browse files
authored
Update _facet_grid.py
1 parent 76d9d17 commit fb39dfe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plotly/figure_factory/_facet_grid.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -812,7 +812,7 @@ def create_facet_grid(df, x, y, facet_row=None, facet_col=None,
812812
marker_color, kwargs_trace, kwargs_marker
813813
)
814814

815-
elif isinstance(df[color_name][0], Number):
815+
elif isinstance(df[color_name].iloc[0], Number):
816816
if isinstance(colormap, dict):
817817
show_legend = True
818818
utils.validate_colors_dict(colormap, 'rgb')

0 commit comments

Comments
 (0)