I want to add a column to my df from a list and then add or minus numbers from each row of the df for that column.
list_of_num = [1,2,3,4,5]
a_variable = 4
df["New_num"] = list_of_num + a_variable
desired output
New_num
5
6
7
8
9
I get the error TypeError: unsupported operand type(s) for -: 'list' and 'int'