I am trying to compare column values to the actual dates and based on the create a new column where it measures the difference between the dates as T1-T14(T1 being the one difference between actual date and column date)
I tried to use where condition where we compare the actual date to the column date and output the result to a new column based on the difference between those two. But unable to achieve the same.
Actual Data: Actual Data
Desired Output: Output Data
source https://stackoverflow.com/questions/76318302/how-can-i-generate-t1-t14-values-in-a-new-column-by-comparing-dates-in-a-pandas
Comments
Post a Comment