I need to create a new column in current data frame from my original whose format given below.
Reg Canceled
20161107 20171102
20120607 20131216
20110105 20130524
The new column will be titled Tenure
, and it should hold the difference in months between the date in the Canceled
column and the one in the Reg
column.
Reg Canceled Tenure
20161107 20171102 12
20120607 20130607 12
20110105 20110505 4