Data Science, Simulation, Deep Dives, Hands On Tutorials, Product Analytics.
= sim_df[sim_df.user_id == user_id]\ .sort_values('date')\ .to_dict('records') # [{'user_id': 4861, 'date': '2023-04-09', 'module': 'pre-A1', 'lesson_num': 8}, # {'user_id': 4861, 'date': '2023-04-16', 'module': 'pre-A1', 'lesson_num': 9}, # {'user_id': 4861, 'date': '2023-04-23', 'module':