After subsetting a dataframe, how to add a column that will sum only specific columns in the subset (row wise)?
After subsetting a dataframe, how to add a column that will sum only specific columns in the subset (row wise)? Question: I’ve searched a lot, including in suggested past questions, and didn’t find an answer. Coming from R and tidyverse and new to Python and pandas. I want to add a column to a subset …
Total answers: 2