Skip to content

Assignment 7: Last question seaborn plot #867

@sagniksom

Description

@sagniksom

I am having an issue where my plot in the last question seems to have more data points than the example shown.

Example shown:
image

My plots:
image

Here is the snippet of code that filters from world data:

world_data_2014 = world_data[world_data['year'] >= 2014]
ax = sns.relplot(x='children_per_woman', y='years_in_school_women', data=world_data_2014, kind='scatter', hue='income_group', col='region', col_wrap=3)
ax.set_axis_labels('children_per_woman', 'years_in_school_women')
plt.savefig('som_sagnik_plot.png')

You will notice that there are fewer data points in the example than in mine. I printed the dataframe and noticed that there are many values close together. Am I doing something wrong or this is just a newer dataset?

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