Hello team,
I would like to update all the months that are in a specific status for each year..
lets say i have the below dataset:
YYYYMM Status
202101 1
202102 1
202103 1
202104 1
202105 1
202106 1
202107 0
202108 1
202109 1
202110 1
202111 1
202112 1
202201 1
202202 1
if i found at least one status=0 in one month i would like to make all the others equal with 0..
So the result i would like to have is :
YYYYMM Status
202101 0
202102 0
202103 0
202104 0
202105 0
202106 0
202107 0
202108 0
202109 0
202110 0
202111 0
202112 0
202201 1
202202 1
Any idea?
Thank you