So say I have the following table:
In [2]: df = pd.DataFrame({\'a\': [1,2,3], \'b\':[2,4,6], \'c\':[1,1,1]}) In [3]: df Out[3]: a b c 0 1 2 1 1 2 4
Maybe you are looking something like this:
df["result"] = df.apply(lambda row: row['a' : 'c'].sum(),axis=1)