Plotly express multiple column plot not working can't see why?

why is this happening please? date and the two other columns ( [‘iv_pctile’,‘h_l_25’] ) have the same number of rows so what am I doing wrong?

the code

h_l_25_chart = px.line(df_line_plot, x= 'date',  y= ['iv_pctile','h_l_25'], color ='symbol')

the error

ValueError: All arguments should have the same length. The length of argument `y` is 2, whereas the length of previous arguments ['date'] is 92 

Hi @comicpilsen, the possibility to pass multiple columns to y has been introduced in plotly 4.8 which was released yesterday, did you update you version of plotly?

1 Like

Hi @Emmanuelle

thank you so much for pointing this out to me. If I had a brain I would be dangerous. I updated and all is well. This is an amazing package for people like me. I don’t want to be a web coder just get my ideas out there, Plotly and plotly-express are spot on. thank you again

1 Like