how to multiply multiple columns by a column in Pandas

use multiply method and set axis="index":

df[["A", "B"]].multiply(df["C"], axis="index")

Leave a Comment