title: UserWarning: Pandas doesn't allow columns to be created via a new attribute name -
body: <p>I am trying to rename columns after I read in a csv file where I want to replace a portion of the column name.<br>
  Here is my code where I want to remove :</p>
  
  <pre><code>'yor_yogurt_march_poggen_output_with_shrink.'
  </code></pre>
  
  <p>I get a user warning. I am using the <strong>pandas library</strong> if that matters.</p>
  
  <pre><code>df.dolumns =  df.columns.str.replace('yor_yogurt_march_poggen_output_with_shrink.', '')
  </code></pre>