Answers for "pandas convert text duration to minutes"

0

pandas convert text duration to minutes

df['Duration']=  df['Duration'].str.replace("h", '*60').str.replace(' ','+').str.replace('m','*1').apply(eval)
Posted by: Guest on October-03-2021

Code answers related to "pandas convert text duration to minutes"

Python Answers by Framework

Browse Popular Code Answers by Language