Question 2¶
Q2a¶
q2a= [1, 100, 10, 101]The length of
q2ais 4.
Question 4¶
Q4a¶
q4astatement= True
Question 5¶
Q5a¶
The answers are 1, 4, 5, 6, 7, and 8.
Q5b¶
The sum of
training_data['Bathrooms']is 288922.training_data.loc[10000, 'Bathrooms']= 1.0The number of values in
training_data['Bathrooms']that are less than 5 is 167797.
Question 6¶
Q6a¶
The unique values in
in_top_10_neighborhoods['Neighborhood Code']are the 10 most common neighborhood codes intraining_data.The sum of
in_top_10_neighborhoods['Neighborhood Code']is 3824060.The number of unique neighborhood codes in
in_top_10_neighborhoodsis 10.
Q6b¶
expensive_neighborhoodscontains 44, 94, and 93.
Q6c¶
The sum of
in_expensive_neighborhoodafter callingadd_in_expensive_neighborhood(training_data, [44, 94, 93])is 1290.