leo_kor

Untitled

Feb 23rd, 2021
570
25 days
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. df_users = df_users.query('month >= reg_month')
  2. df_users['churn_month'] = df_users['churn_date'].values.astype('datetime64[M]')
  3. df_users = df_users.query('month <= churn_month')
RAW Paste Data