I have two columns hours and minutes stored separately in columns: a and b I want to calculate the sum of both in terms of minutes(DURATION)
To convert the hour into minutes I have used the following:
train['duration']=train.a.apply(lambda x:x*60)
Now I want to add the minutes to the newly created duration column.
So that my final value is duration=(a*60)+b
I am unable to perform this operation using lambda and for loop takes forever to execute In pandas.