converting 4hr 20min to minutes code example
Example: converting 4hr 20min to minutes
df['Duration']= df['Duration'].str.replace("h", '*60').str.replace(' ','+').str.replace('m','*1').apply(eval)
df['Duration']= df['Duration'].str.replace("h", '*60').str.replace(' ','+').str.replace('m','*1').apply(eval)