i am on mission 10 in Boolean indexing in NumPy course.
there is a code as answer:
> trip_mph = taxi[:,7] / (taxi[:,8] / 3600) > > print (trip_mph) > > **cleaned_taxi = taxi[trip_mph < 100]** > > print(cleaned_taxi) > > mean_distance = cleaned_taxi[:,7].mean() > mean_length = cleaned_taxi[:,8].mean() > mean_total_amount = cleaned_taxi[:,13].mean()
I do not understand on which column taxi (cleaned_taxi variable) is restricted in this case? We have whole array there so why we know to choose rows only less than 100 ?