Skip to content

Instantly share code, notes, and snippets.

@StrikingLoo
Created September 10, 2018 23:41
Show Gist options
  • Select an option

  • Save StrikingLoo/8f089a98f7ccdb5c01f1c61c09638cfe to your computer and use it in GitHub Desktop.

Select an option

Save StrikingLoo/8f089a98f7ccdb5c01f1c61c09638cfe to your computer and use it in GitHub Desktop.
female = df[df.Sex=='F']
year_count = female.groupby('Year').agg('count')
years = list(year_count.index)
counts = list(year_count.Name) #it doesnt matter which column we pick here,
#as long as its non-empty
sns.scatterplot(x = years, y = counts)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment