Skip to content

Instantly share code, notes, and snippets.

@fnielsen
Created July 17, 2014 19:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fnielsen/1dd1f8d312736380bb13 to your computer and use it in GitHub Desktop.
Save fnielsen/1dd1f8d312736380bb13 to your computer and use it in GitHub Desktop.
Awesome
import re
import requests
import pandas as pd
import matplotlib.pyplot as plt
pd.Series({re.findall('^(.+)\n', section)[0]: len(re.findall('^\*', section, flags=re.MULTILINE)) for section in re.split('^##[^#]', requests.get('https://raw.githubusercontent.com/josephmisiti/awesome-machine-learning/master/README.md').text, flags=re.MULTILINE)[1:-1]}).plot(kind='barh', title="'Awesome' machine learning links")
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment