I am trying to rename columns after I read in a csv file where I want to replace a portion of the column name.
Here is my code where I want to remove :
'yor_yogurt_march_poggen_output_with_shrink.'
I get a user warning. I am using the pandas library if that matters.
df.dolumns = df.columns.str.replace('yor_yogurt_march_poggen_output_with_shrink.', '')