I got a dataframe with several columns. Each of the columns needs to be scaled with individual values and I would like to know if there is any oneliner that will scale the columns appropriate given a dictionary or something else.
Eg. scalingDictionary = {'a': 10, 'b': 5, 'c':0.1} df = pd.Dataframe({'a':[2,4,6,8], 'b':[3,6,9,12], 'c':[1,2,3,4]})
oneliner scaling ... where each column is multiplied with desired value from the dictionary should give the desired output
a b c
20 15 0.1
40 30 0.2
60 45 0.3
80 60 0.4