You can provide weights by passing them to the underlying matplotlib's histogram function using the hist_kws
argument, as:
sns.distplot(..., hist_kws={'weights': your weights array}, ...)
Take note though, that the weights will be passed only to the underlying histogram; neither the kde, nor the fit functions of the distplot
will be affected.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…