I have a pandas df that looks something like below.
how would i be able to multiple columns v2, v3, and v4 by a fixed value? (I am trying to multiple these columns by .23, .43, and .56 respectifully.
v1. v2. v3. v4
1 1 17.70% 18.00%
2 2 16.60% 13.00%
3 3 10.60% 25.00%
4 4 29.10% 18.00%
5 5 20.50% 20.50%
6 6 1.10% 1.10%
7 7 1.10% 1.10%
8 8 1.10% 1.10%
9 9 2.40% 2.20%
I thought i would be able to do something like this
df = df[(df['v2'] * .23), (df['v3'] * .43), , (df['v4'] * .56)]