Data Science, Simulation, Deep Dives, Hands On Tutorials, Product Analytics.
in tqdm.tqdm(sim_raw_df.user_id.unique()): # initialising variables last_test_date = None last_lesson_date = None for rec in sim_raw_df[sim_raw_df.user_id == user_id].to_dict('records'): # initial test if last_test_date is None: last_test_date = rec['date'] tmp_gen_tests.append( { 'user_id':