title: Find Word in a csv file and implement it using loops
body: <p>I am having a dataframe named df which is having two columns,</p>
  <pre><code>    Company name    Company website 
  0   Maersk Drilling http://www.maerskdrilling.com/ 
  1   CICLAGUA SA https://simetriagrupo.com/ 
  2   Enel    http://www.enel.com/ 
  3   Enovos Luxembourg   http://www.enovos.lu/ 
  4   DTEK    http://www.dtek.com/
  </code></pre>
  <p>Now what i am trying to implement is I am trying to find out company name where &quot;gc&quot; word exists and store it into new dataframe df1.</p>
  <pre><code>for i in range(0,a):
      if 'gc' in df['Company name'][i]:
          df1[&quot;Company Name&quot;]= df['Company name'][i]
          df1[&quot;URL&quot;]=df['Company website'][i]
      else:
          pass
      
  </code></pre>
  <p>but this code is showing error</p>
  <pre><code>      1 for i in range(0,a):
  ----&gt; 2     if 'word' in df['Company name'][i]:
        3         df1[&quot;Company Name&quot;]= df['Company name'][i]
        4         df1[&quot;URL&quot;]=df['Company website'][i]
        5     else:
  
  TypeError: argument of type 'float' is not iterable
  </code></pre>