Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

assignment 6 part 2b #835

Open
drbigshog opened this issue Oct 13, 2024 · 2 comments
Open

assignment 6 part 2b #835

drbigshog opened this issue Oct 13, 2024 · 2 comments

Comments

@drbigshog
Copy link

b) Use the boolean array year_2014 you just created to subset the world_data dataframe and store in a variable year_2014_subset. The resulting array should be of size (179 rows, 14 columns).

A: in part a) year_2014 = world_data['year'] == 2014
part b) year_2014_subset = world_data[year_2014]
shape is 39201 rows × 14 columns

Is this question missing an instruction about slicing out rows where life expectancy > 83?

@hollywen7
Copy link

Could you double-check the shape of your year_2014_subset df?
And for 'above_83_bool = world_data['life_expectancy'] > 83' this is pertaining to the example in the class material

@drbigshog
Copy link
Author

drbigshog commented Oct 16, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants