I tried to use seaborn histplot to plot histogram, but I found that when there is an outlier , it will affect the output graph (causing jupyter notebook to crash)
my data:
RESULT Category
-999 A
0.000711 A
0.0006 A
... ...
0.00043 B
0.00041 B
... ...
0.00074 C
I tried to exclude 999 and the plot came out
aaa = test_df_1[test_df_1['RESULT'] != -999]
sns.histplot(data = aaa, x=aaa['RESULT'], hue=aaa['Category'], edgecolor="none")
↑ This works fine
But what I want to do is I don’t want to remove the outlier
sns.histplot(data = test_df_1, x=test_df_1['RESULT'], hue=test_df_1['Category'], edgecolor="none")
↑ This crashes the program