Data Science, Simulation, Deep Dives, Hands On Tutorials, Product Analytics.
30 days have passed. if (rec['lesson_num'] == 100) and (days_diff(last_test_date, rec['date']) >= 30): last_test_date = rec['date'] # TBD saving the test info The last case is that the customer hasn't used our service for three months. if (days_diff(last_lesson_date, rec['date']) >= 30):