Skip to content

Instantly share code, notes, and snippets.

@christopheredsall
Created May 29, 2023 12:10
Show Gist options
  • Save christopheredsall/35aaae8a6d8e0ae96249b7d4832587f8 to your computer and use it in GitHub Desktop.
Save christopheredsall/35aaae8a6d8e0ae96249b7d4832587f8 to your computer and use it in GitHub Desktop.
Plot a graph of attendance at ISC (https://www.isc-hpc.com/ )
#!/usr/bin/env python
# coding: utf-8
# In[1]:
import pandas as pd
import numpy as np
# In[2]:
# get data
table_isc = pd.read_html('https://www.isc-hpc.com/all-years.html')
# In[3]:
# clean the data: 90% of Data Science is cleaning
df = table_isc[0]
df = df.rename({'Unnamed: 0':'Year'}, axis=1)
df["Number of Attendees"] = df["Number of Attendees"].astype('int', errors='ignore')
# In[4]:
df.plot.bar('Year','Number of Attendees', title="ISC Attendance").invert_xaxis()
@christopheredsall
Copy link
Author

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment