Hi,
To rename columns in pandas, you can use rename method with axis='column' or axis=1 and refer the columns to be renamed.
df = df.rename(columns={'A':'w', 'B':'x', 'C':'y','D':'z'}, axis='cloumns')
OR
df = df.rename(columns={'A':'w', 'B':'x', 'C':'y','D':'z'}, axis=1)