I am plotting a histogram using Seaborn to display a single feature's distribution across two separate populations (i.e. group):
sns.histplot(df[[col_name, 'group']], x=feature, hue="group", multiple="dodge", shrink=0.7)
The problem is that the feature array contains None values which are being left out of the plot.
Instead, I would like the distribution of the Null values to be displayed on the same histogram as all other numeric values in order to have a complete picture of the difference in distribution between the groups.
Is there any way to plot the Nones distribution together with numeric values in the same histplot?
Example:
tmp_df = pd.DataFrame({'feature': [10,14,231,2,5,None,3, None, None, 1,5,7], 'group':[1,1,1,1,1,1,2,2,2,2,2,2]})
sns.histplot(tmp_df[['feature', 'group']], x='feature', hue="group", multiple="dodge", shrink=.7)
