In [1]:
URL = 'https://data.seattle.gov/api/views/65db-xm6k/rows.csv?accessType=DOWNLOAD'
In [2]:
from urllib.request import urlretrieve
urlretrieve(URL, 'Fremont.csv')
Out[2]:
In [3]:
!head Fremont.csv
In [4]:
import pandas as pd
df = pd.read_csv('Fremont.csv', index_col='Date', parse_dates=True)
df.head()
Out[4]:
In [5]:
%matplotlib inline
In [6]:
df.info()
In [7]:
df.plot()
Out[7]:
In [8]:
df.resample('W').sum().plot();