Create NYPD.txt

This data was taken from https://data.cityofnewyork.us.
It describes traffic accidents in the New York City area.

I took the data and cleaned it, creating buckets so that there wasn't too much variance in each feature.

I analysed the time distribution of accidents throughout each day and noticed that there was a clear pattern. Accidents tended to follow the same frequency pattern over each day. For that reason I bucketed the time occurrence of accidents into 1 (morning- 0hr-7hr), 2 (day- 8hr-19hr) and 3 (night- 20hr-12hr).

The column names/variables are represented by 'Labels':
Labels = ['HOUR', 'BOROUGH', 'NUMBER OF PERSONS INJURED',
	      'NUMBER OF PERSONS KILLED', 'NUMBER OF PEDESTRIANS INJURED',
	      'NUMBER OF PEDESTIRANS KILLED', 'NUMBER OF CYCLIST INJURED',
	      'NUMBER OF CYCLIST KILLED', 'NUMBER OF MOTORIST INJURED',
	      'NUMBER OF MOTORIST KILLED',
	      'CONTRIBUTING FACTOR PRIMARY VEHICLE',
	      'CONTRIBUTING FACTOR OTHER VEHICLE']

The problem with this dataset was the dimensionality of it...there weren't too many variables to work with, but there was too big a spread in the data before it was run through the code.
It would have been ideal to preprocess it, possibly using Principal Component Analysis, to keep the variance limited to a smaller number of axis.