Deals Of The Week - hours only!Up to 80% off on all courses and bundles.-Close
Introduction
Course Recap
4. Removing outliers
Final challenge
Summary

Instruction

Good! You could see that the very last row in the sorted dataset was incorrect – we'll need to get rid of it.

Also, the last few rows contained homes that were extremely expensive. Naturally, such prices are possible in real life, but we're treating them as outliers here.

Exercise

Delete the very last row from the sorted set – its id is 869 and overwrite the original airbnb_dataset. Sort the rows by price to make sure the above-mentioned row were deleted.

Stuck? Here's a hint!

To delete a row(s) with specific id(s), use .drop(id).