Skip to content

histogram() got an unexpected keyword argument 'legend' with pandas backend #2706

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
ghost opened this issue Aug 13, 2020 · 1 comment · Fixed by #2713
Closed

histogram() got an unexpected keyword argument 'legend' with pandas backend #2706

ghost opened this issue Aug 13, 2020 · 1 comment · Fixed by #2713

Comments

@ghost
Copy link

ghost commented Aug 13, 2020

pandas version 1.1.0
plotly version 4.9.0

The following will raise histogram() got an unexpected keyword argument 'legend' :

import pandas as pd
pd.options.plotting.backend = "plotly"
df = pd.DataFrame()
df.hist()

I suggest to add legend in the skip list:

skip += ["ax", "sharex", "sharey", "figsize", "layout", "bins"]

@nicolaskruchten
Copy link
Contributor

Thanks for the bug report and suggested fix! Should be in the next version :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant