LibraryCarpentry / library-python

Python for Librarians
https://librarycarpentry.github.io/library-python/
Other
21 stars 17 forks source link

Episode 6 - plotting - needs better final example #16

Closed brendam closed 8 years ago

brendam commented 8 years ago

Heading for final example reads:

# A Realistic Example -- TODO

The code in the example now works with the new data, but isn't really a useful plot. Need to create a better example.

c-martinez commented 8 years ago

What would be a good example? I could suggest plotting the number of authors per language to see if English authors tend to collaborate more/less than in other languages.

brendam commented 8 years ago

I've made a pull request #27

I've stuck with numeric plotting examples. I also came up with this, but decided that it might be too messy to explain?

ax = articles_df.groupby('First_Author').Title.count().sort_values(ascending=False)[0:10].plot(kind='barh')
ax.set_xlabel('Number of articles')
mkuzak commented 8 years ago

Merged #27. Do you still want to add more examples? If not, you can close this.

brendam commented 8 years ago

happy as it is.