Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- crimes_count = df.pivot_table('ID', aggfunc=np.size, columns='Primary.Type', index=df.index.date, fill_value=0)
- crimes_count.index = pd.DatetimeIndex(crimes_count.index)
- plo = crimes_count.rolling(365).sum().plot(figsize=(12, 30), subplots=True, layout=(-1, 3), sharex=False, sharey=False)
Add Comment
Please, Sign In to add comment