title: How can I check if the string contains certain word?
body: <p>I have a series looks like this:</p>
  
  <pre><code>0          1.5 
  1      39 mins 
  2          2.5 
  3            3 
  </code></pre>
  
  <p>And I want to convert 39 mins to 0.39. And the following is my code:</p>
  
  <pre><code>df['content_duration'].apply(lambda x: x.str.replace('mins', '').astype(int) * 1/100 if x in 'mins' else x)
  </code></pre>
  
  <p>I do not get an error, but it still won't convert it. How can I make this possible?
  My expected output would be:</p>
  
  <pre><code>0          1.5 
  1         0.39
  2          2.5 
  3            3 
  </code></pre>