<s>[INST] Renaming columns in pandas I have a data table using pandas and column labels that I need to edit to replace the original column labels. 
I'd like to change the column names in a data table A where the original column names are:
['$a', '$b', '$c', '$d', '$e'] 

to 
['a', 'b', 'c', 'd', 'e'].

I have the edited column names stored it in a list, but I don't know how to replace the column names.
 [/INST] df = df.rename(columns={'$a': 'a', '$b': 'b'})
# OR
df.rename(columns={'$a': 'a', '$b': 'b'}, inplace=True)

http://pandas.pydata.org/pandas-docs/stable/generated/pandas.DataFrame.rename.html
 </s>