Created
May 29, 2023 12:10
-
-
Save christopheredsall/35aaae8a6d8e0ae96249b7d4832587f8 to your computer and use it in GitHub Desktop.
Plot a graph of attendance at ISC (https://www.isc-hpc.com/ )
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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() |
Author
christopheredsall
commented
May 29, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment