I have a dataframe of 100 rows of floats ranging from 0.000001
to 0.001986
that I wish to plot on a seaborn histplot, separated by class. I started with,
sns.histplot(data=df, x='score', hue='test_result', kde=True, color='red',
stat='probability', multiple='layer')
plt.show()
However, my bins were overlapping significantly. I added,
binwidth=0.000000001
To the histplot to scale the bins to scientific notation, but this code took over 2 hours to run.
My question is; is there a more computationally efficient way to do this conversion? I need to run the same code for multiple dataframes of similar size. If not, is there a better way to improve the readability of the x-axis bins instead of using scientific notation? Thanks!