Hi Jeremy,
Thanks for your reply but I still don’t understand after reading the link you shared, I also googled for it earlier but did not understand the explanation.
One of the warnings with a snippet of my code is as follow;
Read data from file
df = pd.read_csv('adult.data.csv')
percentage with salary >50K
rich_bachelors = len(df[df['education']=='Bachelors'][df['salary']=='>50K'])
rich_masters = len(df[df['education']=='Masters'][df['salary']=='>50K'])
rich_doctorate = len(df[df['education']=='Doctorate'][df['salary']=='>50K'])
total_highED_rich = rich_bachelors + rich_masters + rich_doctorate
higher_education_rich = (total_highED_rich / higher_education * 100).round(decimals=1)
I did not get any error messages from the test script only those warnings above, and there are many of them yet it prints and returns just fine.