Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

converting 4hr 20min to minutes

df['Duration']=  df['Duration'].str.replace("h", '*60').str.replace(' ','+').str.replace('m','*1').apply(eval)
 
PREVIOUS NEXT
Tagged: #converting #minutes
ADD COMMENT
Topic
Name
1+9 =