Hi,
I’m stuck on this part of the Data Analysis with Python Projects assignment :
higher_education = ((df.education == 'Bachelors') | (df.education == 'Masters') | (df.education == 'Doctorate'))
lower_education = ((df.education != 'Bachelors') & (df.education != 'Masters') & (df.education != 'Doctorate'))
# percentage with salary >50K
higher_education_rich = ((higher_education[(higher_education.salary == '>50K')]) / len(higher_education) * 100).round(1)
lower_education_rich = (((lower_education) & (lower_education.salary == '>50K')) / len(lower_education) * 100).round(1)
The console returns : AttributeError: 'Series' object has no attribute 'salary'
I wrap my head around it but I can’t find a solution.