Data Cleaning With Python, Data Analysis, Dataframes Python, Marketing Analytics.
dates with today’s date using the loc function : today_date = dt.date.today() # Drop values using filtering user_signups = user_signups[user_signups['subscription_date'] < today_date] # Drop values using .drop() user_signups.drop(user_signups[user_signups['subscription_date'] > today_date].index,