title: How to replace the entry of a column with different name by recognizing a pattern?
body: <p>I have a column let's say <code>'Match Place'</code> in which there are entries like <code>'MANU @ POR'</code>, <code>'MANU vs. UTA'</code>, <code>'MANU @ IND'</code>, <code>'MANU vs. GRE'</code> etc. So my columns have 3 things in its entry, the 1st name is <code>MANU</code> i.e, 1st country code, 2nd is <code>@/vs.</code> and 3rd is again 2nd country name. So what I wanna do is if <code>'@'</code> comes in any entry of my column I want is to be changed to <code>'away'</code> and if <code>'vs.'</code> comes in replace whole entry to <code>'home'</code> like 'MANU @ POR' should be changed to <code>'away'</code> and 'MANU vs. GRE' should be changed to <code>'home'</code></p>
  
  <p>although I wrote some code to do so using for, if, else but it's taking a way too long time to compute it and my total rows are 30697
  so is there any other way to reduce time
  below I'm showing you my code
  pls help</p>
  
  <pre><code>for i in range(len(df)):
      if is_na(df['home/away'][i]) == True:
          temp = (df['home/away'][i]).split()
          if temp[1] == '@':
              df['home/away'][i] = 'away'
          else:
              df['home/away'][i] = 'home
  </code></pre>