why this code gives error output in visualization

18 Views Asked by At

*col = 'sex' colors = px.colors.qualitative.Plotly fig = px.bar(medical_df[col].value_counts().reset_index(), x=medical_df.index, y=col, title=f"{col.capitalize()} Distribution", color='index', color_discrete_sequence=colors)

0

There are 0 best solutions below