DataFrame each column miltiply param then sum
I think df * param.to_list() is good.
I have a Dataframe which columns is ['a','b','c'] and a Series param contain three values which is params of Dataframe. The param.index is ['a','b','c']. I want to realize df['a'] * param['a'] + df['b'] * param['b'] + df['c'] * param['c']. Because there are too many columns and params in my code. So is there any concise and elegant code can realize this?