« first day (3632 days earlier)      last day (1300 days later) » 

11:58 AM
bold
bold
bold nonasdasdjsdjsidsah feiieruiuqriurwuwqipppfdkkkkkkkkkkkkkkkkkkkkasuuuuuuuuuuuuuuuuuuu
 
 
3 hours later…
3:25 PM
OakBot Online.
 
 
3 hours later…
6:29 PM
I could do this in excel pretty easily, but having a hard time in python:
where C2 = 1
C3=IF(B3=B2,C2,C2+1)...
C4=IF(B4=B3,C3,C3+1)...
Attempt:
df.loc[0:0,'C'] = 1
df['C'] = np.where((df['B'] == df['B'].shift(1), df['C'].shift(1), df['C'].shift(1)+1))
 

« first day (3632 days earlier)      last day (1300 days later) »