I have the below code which adds the value across every cell but what i want is to create a new column called one_way_turnover and only add the value to the first cell not every cell. can someone help me please?
df[:, 'one_way_turnover'] = (df[col_name].abs.sum()) / 2