text_html_output_1.png
import numpy as np # linear algebra

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()

first_date = np.datetime64('2006-01-01')
days = (pd.to_datetime(raw_data['CMPLNT_FR_DT'], format='%m/%d/%Y', errors='coerce') - first_date).dt.days
days

days_ = days[days.isnull() == False]
days_ = days_[days_ > 0]
days_ = days_
days_