How can I sum value in list of dataframe
Solution 1:
You can apply sum
function to the path_pair
column:
df['path_pair_sum'] = df['path_pair'].apply(sum)
Output:
session_id path path_pair path_pair_sum
0 T01 abc [0.03, 0.09] 0.12
1 T02 def [0.02, 0.15, 0.26] 0.43