Exercise 6: Working with Pandas dataframes
- Due Oct 4, 2017 by 12:30pm
- Points 20
- Submitting a file upload
- File Types ipynb
Create a new, clean IPython notebook to contain your homework submission. Download items.csv Download items.csv and save it to a data directory below your working directory.
Using the items.csv file and the pandas techniques we have been learning in class this week:
- Clean the price, bedrooms and sqft fields and make each a float type
- Calculate the mean, minimum, and maximum rent price, bedrooms and square footage
- Create a subset dataframe with listings between $200 and $10,000, and excluding listings with missing values on bedrooms or square footage
- Calculate the mean, minimum, and maximum rent price, bedrooms, and square footage on this filtered subset
- Create histogram plots of the full dataset and the filtered dataset, for price, bedrooms and sqft
Use comments to document all of your logic throughout the notebook. Make sure your entire notebook runs properly and without any errors. Click Kernel > Restart > Clear all outputs and restart. This clears your memory and re-initializes your notebook. Then click Cell > Run all and make sure everything behaves properly. Then submit your .ipynb file via bcourses.