Skip to content

Commit da6c2f2

Browse files
Merge pull request #2713 from plotly/fix_pandas
skip legend arg in pandas hist
2 parents dc9c5fd + a810a95 commit da6c2f2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: packages/python/plotly/plotly/__init__.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ def hist_frame(data_frame, **kwargs):
158158
from .express import histogram
159159

160160
skip = ["column", "by", "grid", "xlabelsize", "xrot", "ylabelsize", "yrot"]
161-
skip += ["ax", "sharex", "sharey", "figsize", "layout", "bins"]
161+
skip += ["ax", "sharex", "sharey", "figsize", "layout", "bins", "legend"]
162162
new_kwargs = {k: kwargs[k] for k in kwargs if k not in skip}
163163
return histogram(data_frame, **new_kwargs)
164164

@@ -172,6 +172,6 @@ def hist_series(data_frame, **kwargs):
172172
from .express import histogram
173173

174174
skip = ["by", "grid", "xlabelsize", "xrot", "ylabelsize", "yrot", "ax"]
175-
skip += ["figsize", "bins"]
175+
skip += ["figsize", "bins", "legend"]
176176
new_kwargs = {k: kwargs[k] for k in kwargs if k not in skip}
177177
return histogram(data_frame, **new_kwargs)

0 commit comments

Comments
 (0)