jeudi 27 juin 2019

How do I use an if else statement in a loop?

I am trying to create an new column in a dataframe titled "Date2" which I will have to loop through previous iterations of the calculation.

The following is the logic.

If ID2 = Previous(ID2) then Previous(Date2) ELSE Date1 + 60

Aucun commentaire:

Enregistrer un commentaire