title: Weighted histogram plotly
body: <p>I'm looking to migrate from <code>matplotlib</code> to <code>plotly</code>,  but it seems that <code>plotly</code> does not have good integration with <code>pandas</code>. For example, I'm trying to make a weighted histogram specifying the number of bins: </p>
  
  <pre><code>sns.distplot(df.X, bins=25, hist_kws={'weights':df.W.values},norm_hist=False,kde=False)  
  </code></pre>
  
  <p>But I´m not finding a simple way to do this with <code>plotly</code>.  How can I make a histogram of data from a <code>pandas.DataFrame</code> using <code>plotly</code> in a straightforward manner?</p>