df = pd.DataFrame({"A": [1, 2, 3], "B": [4, 5, 6]}) cols= {"A": "a", "B": "c"} >>> df.rename(columns=cols) a c 0 1 4 1 2 5 2 3 6