Hi everyone,
I am working on a big data file and wish to visualize it and whats better than Plotly for this. I like to plot a bar chart by using plotly express. I write piece of code for that the issue is that it’s not plotting (A,B)
I don’t want to use plotly.graph_objs as go for creating barchart as it doesn’t perform mouse hovering.
Sample data:
CLASS,SCORE
1,385.45
1,424.66
2,1302.35
2,1501.93
3,1466.27
3,988.13
3,1432.21
3,200
3,750
4,1466.27
4,988.13
4,1432.21
5,1466.27
5,988.13
6,1432.21
6,1466.27
7,988.13
8,1432.21
8,1466.27
8,988.13
9,1432.21
10,1466.27
11,988.13
11,1432.21
12,1466.27
12,988.13
13,1432.21
A,617.39
A,1808.94
B,2507.65
B,2354.97
Script:
import pandas as pd
import plotly.express as px
df = pd.read_csv("data-3.csv")
fig = px.bar(df, x = 'CLASS', y = 'SCORE')
fig.show()


? They can’t be seen in your data. Given the sample data you displayed and the code you shared using