There are two columns in my dataframe.
One is called brand name
,another is total amount
I defined a function to determine that:
if the brand name == 'something' and total amount > 'some number'
then return 'something'
I want to apply the function to dataframe - df[["Brand Name","Total amount"]]
and it return errors.
Please advise how to solve this problem?Thanks.