title: How to replace row data based off the value
body: <p>I am trying to find a way so that when i load a csv file into a pandas df I can run a script that will go through the Description column and change the value if a condition is met. Example, if the the value in the description column  has the word x in it, will then replace that value with y and continue through that column and do it for multiple values.</p>
  <p>Im not sure if this would be better an if..elif..else statement or better to locate buy row and then build a function.</p>
  <pre><code>data.loc[(data.Description == 'x'),'Description']= 'y'
  </code></pre>
  <p>But im not sure of the code to do a like statement in sql, for pandas.
  I was trying <code>data.loc['indexes'] == data.Description.str.contains(&quot;x&quot;), 'Description' = 'y'</code> but i couldnt get it to work</p>