SHARE
TWEET

Untitled

a guest May 26th, 2019 64 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. {
  2.  "cells": [
  3.   {
  4.    "cell_type": "code",
  5.    "execution_count": 3,
  6.    "metadata": {},
  7.    "outputs": [],
  8.    "source": [
  9.     "import pandas as pd\n",
  10.     "import matplotlib.pyplot as plt\n",
  11.     "import seaborn as sns\n",
  12.     "%matplotlib inline"
  13.    ]
  14.   },
  15.   {
  16.    "cell_type": "code",
  17.    "execution_count": 4,
  18.    "metadata": {},
  19.    "outputs": [
  20.     {
  21.      "data": {
  22.       "text/html": [
  23.        "<div>\n",
  24.        "<style scoped>\n",
  25.        "    .dataframe tbody tr th:only-of-type {\n",
  26.        "        vertical-align: middle;\n",
  27.        "    }\n",
  28.        "\n",
  29.        "    .dataframe tbody tr th {\n",
  30.        "        vertical-align: top;\n",
  31.        "    }\n",
  32.        "\n",
  33.        "    .dataframe thead th {\n",
  34.        "        text-align: right;\n",
  35.        "    }\n",
  36.        "</style>\n",
  37.        "<table border=\"1\" class=\"dataframe\">\n",
  38.        "  <thead>\n",
  39.        "    <tr style=\"text-align: right;\">\n",
  40.        "      <th></th>\n",
  41.        "      <th>Postcode</th>\n",
  42.        "      <th>Borough</th>\n",
  43.        "      <th>Neighborhood</th>\n",
  44.        "    </tr>\n",
  45.        "  </thead>\n",
  46.        "  <tbody>\n",
  47.        "    <tr>\n",
  48.        "      <th>0</th>\n",
  49.        "      <td>M3A</td>\n",
  50.        "      <td>North York</td>\n",
  51.        "      <td>Parkwoods</td>\n",
  52.        "    </tr>\n",
  53.        "    <tr>\n",
  54.        "      <th>1</th>\n",
  55.        "      <td>M4A</td>\n",
  56.        "      <td>North York</td>\n",
  57.        "      <td>Victoria Village</td>\n",
  58.        "    </tr>\n",
  59.        "    <tr>\n",
  60.        "      <th>2</th>\n",
  61.        "      <td>M5A</td>\n",
  62.        "      <td>Downtown Toronto</td>\n",
  63.        "      <td>Harbourfront,Regent Park</td>\n",
  64.        "    </tr>\n",
  65.        "    <tr>\n",
  66.        "      <th>3</th>\n",
  67.        "      <td>M6A</td>\n",
  68.        "      <td>North York</td>\n",
  69.        "      <td>Lawrence Heights,Lawrence Manor</td>\n",
  70.        "    </tr>\n",
  71.        "    <tr>\n",
  72.        "      <th>4</th>\n",
  73.        "      <td>M7A</td>\n",
  74.        "      <td>Queen's Park</td>\n",
  75.        "      <td>Queen's Park</td>\n",
  76.        "    </tr>\n",
  77.        "  </tbody>\n",
  78.        "</table>\n",
  79.        "</div>"
  80.       ],
  81.       "text/plain": [
  82.        "  Postcode           Borough                     Neighborhood\n",
  83.        "0      M3A        North York                        Parkwoods\n",
  84.        "1      M4A        North York                 Victoria Village\n",
  85.        "2      M5A  Downtown Toronto         Harbourfront,Regent Park\n",
  86.        "3      M6A        North York  Lawrence Heights,Lawrence Manor\n",
  87.        "4      M7A      Queen's Park                     Queen's Park"
  88.       ]
  89.      },
  90.      "execution_count": 4,
  91.      "metadata": {},
  92.      "output_type": "execute_result"
  93.     }
  94.    ],
  95.    "source": [
  96.     "df = pd.read_excel(\"toronto neighbourhoods.xlsx\")\n",
  97.     "df.head()"
  98.    ]
  99.   },
  100.   {
  101.    "cell_type": "code",
  102.    "execution_count": 5,
  103.    "metadata": {},
  104.    "outputs": [
  105.     {
  106.      "data": {
  107.       "text/plain": [
  108.        "(103, 3)"
  109.       ]
  110.      },
  111.      "execution_count": 5,
  112.      "metadata": {},
  113.      "output_type": "execute_result"
  114.     }
  115.    ],
  116.    "source": [
  117.     "df.shape"
  118.    ]
  119.   },
  120.   {
  121.    "cell_type": "code",
  122.    "execution_count": null,
  123.    "metadata": {},
  124.    "outputs": [],
  125.    "source": []
  126.   }
  127.  ],
  128.  "metadata": {
  129.   "kernelspec": {
  130.    "display_name": "Python 3",
  131.    "language": "python",
  132.    "name": "python3"
  133.   },
  134.   "language_info": {
  135.    "codemirror_mode": {
  136.     "name": "ipython",
  137.     "version": 3
  138.    },
  139.    "file_extension": ".py",
  140.    "mimetype": "text/x-python",
  141.    "name": "python",
  142.    "nbconvert_exporter": "python",
  143.    "pygments_lexer": "ipython3",
  144.    "version": "3.6.8"
  145.   }
  146.  },
  147.  "nbformat": 4,
  148.  "nbformat_minor": 2
  149. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top