Iâm using the âcreditcard.csvâ data for Plotly histogram. I want to use parameters histnorm=âprobabilityâ and marginal=ârugâ
Before these parameters, I could run this code,
fig = px.histogram(df, x="Time", color="Class", histnorm='probability', color_discrete_sequence=["slategray", "magenta"])
fig.update_layout(title='Transactions Time Density Plot')
fig.show()
But when I run this code;
fig = px.histogram(df, x="Time", color="Class", histnorm='probability', color_discrete_sequence=["slategray", "magenta"], marginal="rug", hover_data=["Time", "Class"])
fig.update_layout(title='Transactions Time Density Plot')
fig.show()
I couldnât get any result even any warning and I had to restart the kernel.
How can I solve this?
creditcard.csv from kaggle has more than 100MB. Have you extracted some rows from that file? Could you give a link to your csv version, to run it? Otherwise we cannot express any opinion on whatâs going on.
To see why the rug plot isnât displayed you should extract a few records from that big file, and test the behaviour of that subfile to be able to deduce what causes the reported issue. Sincerely, I donât want to download such a big file on my system.