I have a dataframe of 80 columns whereby I am trying to get the sum of the columns from the start of the indicated column to the last column.
df_category['Final_Score'] = df_category.iloc[:,42:].sum(1)
However when I ran the code below I realize that the last column was not taken into calculation.
I have tried to use iloc[:, -38:-1] and iloc[:,-38:] but it didn't work as well
below is a subset and sample of the scoring which I am trying to do.