Skip to content

Instantly share code, notes, and snippets.

@hunterowens
Created July 19, 2017 21:23
Show Gist options
  • Select an option

  • Save hunterowens/9d64dd7fc73388bf45ed4af1004ad376 to your computer and use it in GitHub Desktop.

Select an option

Save hunterowens/9d64dd7fc73388bf45ed4af1004ad376 to your computer and use it in GitHub Desktop.
311 Loader and counter
import pandas as pd
df = pd.read_csv('path/to/csv')
df.groupby(['CD','RequestType']).count().to_csv('2016_311_counts.csv')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment