Created
December 15, 2015 15:59
-
-
Save Akramz/103b618140bed4238603 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 | |
from sys import exit | |
data = pd.read_csv('../../data/train.csv', sep=',') | |
train = data[['Address']] | |
train = train.loc[train['Address'].str.contains(' Block of ')] | |
train['count'] = 1 | |
train = train.groupby('Address').sum().reset_index() | |
print len(train) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment