July 2018
Intermediate to advanced
474 pages
13h 37m
English
This section will walk through the steps to prepare the feature variables for our model.
df = df.select('fireIndicator', 'Zipcode of Incident', 'Battalion', 'Station Area', 'Box', 'Number of Alarms', 'Unit sequence in call dispatch', 'Neighborhooods - Analysis Boundaries', 'Fire Prevention District', 'Supervisor District')df.show(5)
print('Total Rows')df.count()print('Rows without Null values')df.dropna().count()print('Row ...Read now
Unlock full access