You can provide weight by passing them to the main matplotlib histogram function with the hist_kws
argument, like:
sns.distplot(..., hist_kws={'weights': your weights array}, ...)
Please note that weights will only be transferred to the base histogram; neither kde nor the distplot
fit distplot
will be affected.
source share