I have a dataframe with some columns named incrementally (e.g. A_1, A_2, A_3, ... ). I want to perform an operation on them, the-like of:
A_1*1 + A_2*2 + A_3*3 + ...
Is there a quick way to do that, instead of just writing down the name of all the columns (they are 15 in total)?