Skip to content

assignment 6 part 2b #835

@drbigshog

Description

@drbigshog

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions