Seaborn.histplot doesn't show full data with hue

38 Views Asked by At

I'm trying to use 'seaborn.histplot()' to show from which of the categorical 'Destination' data has been 'Transported'.

df_train description

sns.histplot(df_train, x='Destination',hue='Transported')

this is the output

as you can see, part of the the histogram is grey and it's doesn't clear how many was transported or not.

I thought it is something to do with Nan values, but after I removed them it stayed the same. I'm expecting to see all the bars colored with orange and blue, what am I doing wrong?

0

There are 0 best solutions below