I assign the column index of a dataframe to an object.
Object1 = df.columns
Next, I try to change the 2nd element of this list.
Object1[1]='Fred'
I am getting the following error when I attempt to change the element of a list.
'TypeError: Index does not support mutable operations'
I simply expect the second element (column) name to be "Fred".