Answers for "sum all the columns in pandas and get the men"

0

python column = sum of list of columns

list_of_my_columns = ['Col A', 'Col E', 'Col Z']
df['Sum'] = df[list_of_my_columns].sum(axis=1)
Posted by: Guest on April-07-2020

Code answers related to "sum all the columns in pandas and get the men"

Python Answers by Framework

Browse Popular Code Answers by Language