I have multiple data points for every day. I need to detect the first 0 of every day. I want to transform Data to the Output column.
Data in reproducible format:
Date,Data,Output
1/1/2019,1,False
1/1/2019,1,False
1/1/2019,0,True
1/1/2019,0,False
1/1/2019,1,False
2/1/2019,1,False
2/1/2019,0,True
2/1/2019,1,False
3/1/2019,0,True
3/1/2019,0,False
I thought this might involve the groupby feature, but struggling to figure out how to start.