text_plain_output_1.png
import pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv)

raw_data = pd.read_csv('../input/rows.csv', usecols=['CMPLNT_FR_DT', 'Latitude', 'Longitude']).dropna()

rd = raw_data
rd = rd[rd['Latitude'] > rd['Latitude'].mean() - 3 * rd['Latitude'].std()][rd['Latitude'] < rd['Latitude'].mean() + 3 * rd['Latitude'].std()]
rd = rd[rd['Longitude'] > rd['Longitude'].mean() - 3 * rd['Longitude'].std()][rd['Longitude'] < rd['Longitude'].mean() + 3 * rd['Longitude'].std()]

rd.shape

rd['Longitude'].hist()