I have a df as follows: with n knows at runtime. I need to count 1 and -1 values over the rows. Namely, I need a new df (or new columns in the old one): Any advice? Continue reading...