Newer
Older
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"What we just did is called **boolean indexing**."
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Let's load again our file with home prices and filter out homes based on our preference:\n",
"1. Load up the file `data/homes.csv`\n",
"2. The data contains some duplicates. Filter them out.\n",
"3. Let's say that the most we can spend on a house is £150. Keep only houses that have a **sell**ing price less than £150 and remove the rest\n",
"4. Select only houses that have 4 or more bedrooms\n",
"5. Select only houses that have 3 or more baths\n",
"You should end up with only 2 houses"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",