I am trying create dynamic table names by using variable from the for loop. I am using Python 2.7.
This is the function I intend to write:
where columns can be parsed from the external sources.
FUNCTION:
def cutoff(row):
if (row['CourierCode']=='DP'):
for TAT in range(5):
row[eval("TAT + "+str(TAT))]=[row.taskcreateddate==row.ReturnPickupDate+
timedelta(days=TAT)]
RefundwTaskData.apply(lambda row : func(cutoff),axis = 1)