title: AttributeError: 'str' object has no attribute 'str'
body: <p>My <code>pandas</code> <code>DataFrame</code> looks like following. I am trying to remove <code>'$'</code> and <code>','</code> from my <code>income</code> column and then apply on my original <em>dataframe</em>. so I created below function. However, it is giving me error Saying <code>"str" object has no attribute "str".</code> </p>
  
  <p>Any suggestion on how to fix this is greatly appreciated.</p>
  
  <p><em>Note:</em> I am new to python so please provide explanation.</p>
  
  <p><strong>My Dataframe:</strong> </p>
  
  <pre><code>df1=pd.DataFrame(
       {'Name': ['a', 'b','c','d'],
       'income': ['$1', '$2,000','$10,000','$140,000']})
  </code></pre>
  
  <p><strong>My Function:</strong></p>
  
  <pre><code>def column_replace(x):
      return x.str.replace('$', '').str.replace(',','').apply(lambda x: column_replace(x))
  </code></pre>