Question: Python In [254]: assert top_walker assert isinstance(top_walker, float) Question 5e: What is the average income for people over the age of 65? Save your response

Python Python In [254]: assert top_walker assert isinstance(top_walker, float) Question 5e: What

In [254]: assert top_walker assert isinstance(top_walker, float) Question 5e: What is the average income for people over the age of 65? Save your response in a variable called old_income. Note: We're asking for the actual income, not the log-10 of income. In [269]: over_65 - df[df['age']>65]. index old_income = df['income'].mean() over_65 File ""line 3 old_income = df['income'].mean(axis{index (over_65), columns (2) }) SyntaxError: invalid syntax In [ ]: assert old_income assert old_income > 5

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!