{ "cells": [ { "cell_type": "code", "execution_count": 4, "id": "b14199d0", "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "\n", "\u001b[1m[\u001b[0m\u001b[34;49mnotice\u001b[0m\u001b[1;39;49m]\u001b[0m\u001b[39;49m A new release of pip available: \u001b[0m\u001b[31;49m22.2.1\u001b[0m\u001b[39;49m -> \u001b[0m\u001b[32;49m23.0.1\u001b[0m\n", "\u001b[1m[\u001b[0m\u001b[34;49mnotice\u001b[0m\u001b[1;39;49m]\u001b[0m\u001b[39;49m To update, run: \u001b[0m\u001b[32;49mpip3 install --upgrade pip\u001b[0m\n", "Downloading property-salesmelbourne-city.zip to /Users/mmoryl/Projects/UAM/ium_s487183\n", " 0%| | 0.00/589k [00:00, ?B/s]\n", "100%|████████████████████████████████████████| 589k/589k [00:00<00:00, 7.61MB/s]\n", "Archive: property-salesmelbourne-city.zip\n", " inflating: data/Property Sales of Melbourne City.csv \n", "Property Sales of Melbourne City.csv\n" ] } ], "source": [ "!pip3 install -q kaggle\n", "!kaggle datasets download amalab182/property-salesmelbourne-city\n", "!mkdir -p data\n", "!unzip -o property-salesmelbourne-city.zip -d data\n", "!rm property-salesmelbourne-city.zip\n", "!ls data" ] }, { "cell_type": "code", "execution_count": 6, "id": "10a21817", "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Requirement already satisfied: pandas in /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (1.5.3)\n", "Requirement already satisfied: pytz>=2020.1 in /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (from pandas) (2023.2)\n", "Requirement already satisfied: python-dateutil>=2.8.1 in /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (from pandas) (2.8.2)\n", "Requirement already satisfied: numpy>=1.21.0 in /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (from pandas) (1.24.2)\n", "Requirement already satisfied: six>=1.5 in /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (from python-dateutil>=2.8.1->pandas) (1.16.0)\n", "\n", "\u001b[1m[\u001b[0m\u001b[34;49mnotice\u001b[0m\u001b[1;39;49m]\u001b[0m\u001b[39;49m A new release of pip available: \u001b[0m\u001b[31;49m22.2.1\u001b[0m\u001b[39;49m -> \u001b[0m\u001b[32;49m23.0.1\u001b[0m\n", "\u001b[1m[\u001b[0m\u001b[34;49mnotice\u001b[0m\u001b[1;39;49m]\u001b[0m\u001b[39;49m To update, run: \u001b[0m\u001b[32;49mpip3 install --upgrade pip\u001b[0m\n" ] }, { "data": { "text/html": [ "
\n", " | Unnamed: 0 | \n", "Suburb | \n", "Address | \n", "Rooms | \n", "Type | \n", "Price | \n", "Method | \n", "SellerG | \n", "Date | \n", "Distance | \n", "... | \n", "Bathroom | \n", "Car | \n", "Landsize | \n", "BuildingArea | \n", "YearBuilt | \n", "CouncilArea | \n", "Lattitude | \n", "Longtitude | \n", "Regionname | \n", "Propertycount | \n", "
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0 | \n", "1 | \n", "Abbotsford | \n", "85 Turner St | \n", "2 | \n", "h | \n", "1480000 | \n", "S | \n", "Biggin | \n", "3/12/2016 | \n", "2.5 | \n", "... | \n", "1.0 | \n", "1.0 | \n", "202.0 | \n", "NaN | \n", "NaN | \n", "Yarra | \n", "-37.79960 | \n", "144.99840 | \n", "Northern Metropolitan | \n", "4019.0 | \n", "
1 | \n", "2 | \n", "Abbotsford | \n", "25 Bloomburg St | \n", "2 | \n", "h | \n", "1035000 | \n", "S | \n", "Biggin | \n", "4/02/2016 | \n", "2.5 | \n", "... | \n", "1.0 | \n", "0.0 | \n", "156.0 | \n", "79.0 | \n", "1900.0 | \n", "Yarra | \n", "-37.80790 | \n", "144.99340 | \n", "Northern Metropolitan | \n", "4019.0 | \n", "
2 | \n", "4 | \n", "Abbotsford | \n", "5 Charles St | \n", "3 | \n", "h | \n", "1465000 | \n", "SP | \n", "Biggin | \n", "4/03/2017 | \n", "2.5 | \n", "... | \n", "2.0 | \n", "0.0 | \n", "134.0 | \n", "150.0 | \n", "1900.0 | \n", "Yarra | \n", "-37.80930 | \n", "144.99440 | \n", "Northern Metropolitan | \n", "4019.0 | \n", "
3 | \n", "5 | \n", "Abbotsford | \n", "40 Federation La | \n", "3 | \n", "h | \n", "850000 | \n", "PI | \n", "Biggin | \n", "4/03/2017 | \n", "2.5 | \n", "... | \n", "2.0 | \n", "1.0 | \n", "94.0 | \n", "NaN | \n", "NaN | \n", "Yarra | \n", "-37.79690 | \n", "144.99690 | \n", "Northern Metropolitan | \n", "4019.0 | \n", "
4 | \n", "6 | \n", "Abbotsford | \n", "55a Park St | \n", "4 | \n", "h | \n", "1600000 | \n", "VB | \n", "Nelson | \n", "4/06/2016 | \n", "2.5 | \n", "... | \n", "1.0 | \n", "2.0 | \n", "120.0 | \n", "142.0 | \n", "2014.0 | \n", "Yarra | \n", "-37.80720 | \n", "144.99410 | \n", "Northern Metropolitan | \n", "4019.0 | \n", "
... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "
18391 | \n", "23540 | \n", "Williamstown | \n", "8/2 Thompson St | \n", "2 | \n", "t | \n", "622500 | \n", "SP | \n", "Greg | \n", "26/08/2017 | \n", "6.8 | \n", "... | \n", "2.0 | \n", "1.0 | \n", "NaN | \n", "89.0 | \n", "2010.0 | \n", "NaN | \n", "-37.86393 | \n", "144.90484 | \n", "Western Metropolitan | \n", "6380.0 | \n", "
18392 | \n", "23541 | \n", "Williamstown | \n", "96 Verdon St | \n", "4 | \n", "h | \n", "2500000 | \n", "PI | \n", "Sweeney | \n", "26/08/2017 | \n", "6.8 | \n", "... | \n", "1.0 | \n", "5.0 | \n", "866.0 | \n", "157.0 | \n", "1920.0 | \n", "NaN | \n", "-37.85908 | \n", "144.89299 | \n", "Western Metropolitan | \n", "6380.0 | \n", "
18393 | \n", "23544 | \n", "Yallambie | \n", "17 Amaroo Wy | \n", "4 | \n", "h | \n", "1100000 | \n", "S | \n", "Buckingham | \n", "26/08/2017 | \n", "12.7 | \n", "... | \n", "3.0 | \n", "2.0 | \n", "NaN | \n", "NaN | \n", "NaN | \n", "NaN | \n", "-37.72006 | \n", "145.10547 | \n", "Northern Metropolitan | \n", "1369.0 | \n", "
18394 | \n", "23545 | \n", "Yarraville | \n", "6 Agnes St | \n", "4 | \n", "h | \n", "1285000 | \n", "SP | \n", "Village | \n", "26/08/2017 | \n", "6.3 | \n", "... | \n", "1.0 | \n", "1.0 | \n", "362.0 | \n", "112.0 | \n", "1920.0 | \n", "NaN | \n", "-37.81188 | \n", "144.88449 | \n", "Western Metropolitan | \n", "6543.0 | \n", "
18395 | \n", "23546 | \n", "Yarraville | \n", "33 Freeman St | \n", "4 | \n", "h | \n", "1050000 | \n", "VB | \n", "Village | \n", "26/08/2017 | \n", "6.3 | \n", "... | \n", "2.0 | \n", "2.0 | \n", "NaN | \n", "139.0 | \n", "1950.0 | \n", "NaN | \n", "-37.81829 | \n", "144.87404 | \n", "Western Metropolitan | \n", "6543.0 | \n", "
18396 rows × 22 columns
\n", "