Data Science, Product Analytics, Ab Testing, Simulation, Deep Dives.
tmp_df.refund.mean() } ) # Saving data bootstrap_df = pd.DataFrame(tmp) # Calculating confident interval lower_bound = bootstrap_df.refund_share.quantile((1 - confidence)/2) upper_bound = bootstrap_df.refund_share.quantile(1 - (1 - confidence)/2) # Creating a chart ax =