I am trying to create a box plot with plotly python but the graph is not showing. I have missing data in the columns that i am using in the graph. Is plotly handle missing data automatically or do i have to fill the missing values before creating the graphs.
For reference, here is my code for the box - plot
- Using Graph objects
fig = go.Figure() fig.add_box(x= train['meter'], y= train['meter_reading']) fig.update_layout(title='Meter Reading By Meter Type', xaxis_title_text='Types of Meter', yaxis_title_text='Meter Reading') fig.show()
- Using plotly xpress
fig = px.box(train, x='meter', y='meter_reading') fig.show()
can anyone help me with this?