Data Cleaning With Python, Data Analysis, Dataframes Python, Marketing Analytics.
subscription_date column has object datatype hence string type values, so first we need to convert them to date type: # Convert to date user_signups['subscription_date'] = pd.to_datetime(user_signups['subscription_date']).dt.date Next , we replace the values of this column which are showing future