Skip to content

KeyError: 71 #3474

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
CasellaJr opened this issue Nov 16, 2021 · 1 comment
Closed

KeyError: 71 #3474

CasellaJr opened this issue Nov 16, 2021 · 1 comment

Comments

@CasellaJr
Copy link

CasellaJr commented Nov 16, 2021

Thanks for your interest in plotly.py!!

I was creating an histogram with plotly:

import plotly.graph_objs as go
from plotly.subplots import make_subplots
import plotly.express as px
import plotly.graph_objs as gobj
import plotly.figure_factory as ff

#age
hist_data =[coralys_data["age"].values]
group_labels = ['age'] 

fig = px.histogram(hist_data, x=coralys_data["age"], marginal="box", hover_data=hist_data, nbins=58,
                   title="Age distribution plot")
fig.show()

Here I obtain the error:
ValueError: All arguments should have the same length. The length of column argument `df[wide_variable_0]` is 1, whereas the length of previously-processed arguments ['hover_data_0'] is 14699

But ok, maybe I am doing something wrong. But the problem is if I remove the last command:
fig = px.histogram(hist_data, x=coralys_data["age"]) fig.show()
I obtain
KeyError: 71

What is this error 71?

@AaronStiff
Copy link
Contributor

Duplicate of #4040.

Yes, definitely an open bug. We'll use the above issue to track this as we've had a couple of other duplicates like this.

@AaronStiff AaronStiff closed this as not planned Won't fix, can't repro, duplicate, stale Feb 13, 2023
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

No branches or pull requests

2 participants