Data Science, Product Analytics, Ab Testing, Simulation, Deep Dives.
tmp = [] for i in tqdm.tqdm(range(num_batches)): tmp_df = df.sample(df.shape[0], replace = True) tmp_df['refund'] = list(map( lambda kms, passed: 1 if (kms >= 150) and (passed == 0) else 0, tmp_df.kms_during_program, tmp_df.finished_marathon )) tmp.append( { 'iteration': i, 'refund_share':