I am trying to make a new column that is the week number from his first order date. The data is for first 30 days so week would range from w1 to w4.
Input:
user_id order_date
393   15/03/19
393   16/03/19
393   23/03/19
393   24/03/19
393   25/03/19
393   28/03/19
393  29/03/19
393  30/03/19
393  31/03/19
393  05/04/19
1014    08/12/18
1014    09/12/18
1014    18/12/18
1014    20/12/18
1014    22/12/18
1014    23/12/18
1014    30/12/18
Desired Output:
user_id order_date  week
393 15/03/19       w1
393 16/03/19       w1
393 23/03/19       w2
393 24/03/19       w2
393 25/03/19       w2
393 28/03/19       w2
393 29/03/19       w3
393 30/03/19       w3
393 31/03/19       w3
393 05/04/19       w4
1014    08/12/18    w1
1014    09/12/18    w1
1014    18/12/18    w2
1014    20/12/18    w2
1014    22/12/18    w3
1014    23/12/18    w3
1014    30/12/18    w4
 
     
    