Created
December 15, 2015 15:33
-
-
Save Akramz/57e6c035b19177c98f72 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
import pandas as pd | |
import numpy as np | |
data = pd.read_csv('../../data/train.csv', sep=',') | |
train = data[['PdDistrict']] | |
train['count'] = 1 | |
train = train.groupby('PdDistrict').sum().reset_index() | |
print train |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment