test_results = df_hv[df_hv.group == 'test'].purchase_count control_results = df_hv[df_hv.group == 'control'].purchase_count hist_data = [test_results, control_results] group_labels = ['test', 'control'] # Create distplot with curve_type set to 'normal' fig = ff.create_distplot(hist_data, group_labels, bin_size=.5, curve_type='normal',show_rug=False) fig.layout = go.Layout( title='High Value Customers Test vs Control', plot_bgcolor = 'rgb(243,243,243)', paper_bgcolor = 'rgb(243,243,243)', ) # Plot! pyoff.iplot(fig)