Defining a spend column based on individual categories

PHOTO EMBED

Tue May 21 2024 08:51:32 GMT+0000 (Coordinated Universal Time)

Saved by @Uncoverit #python

# Defining a spend column based on individual categories
df['TotalSpend'] = df['Wines'] + df['Fruits'] + df['Meat'] + df['Fish'] + df['Sweets'] + df['Gold']
content_copyCOPY