{ "cells": [ { "cell_type": "code", "execution_count": 10, "metadata": { "execution": { "iopub.execute_input": "2020-10-02T14:32:53.470204Z", "iopub.status.busy": "2020-10-02T14:32:53.469989Z", "iopub.status.idle": "2020-10-02T14:32:54.688123Z", "shell.execute_reply": "2020-10-02T14:32:54.687074Z", "shell.execute_reply.started": "2020-10-02T14:32:53.470180Z" } }, "outputs": [], "source": [ "import altair as alt\n", "import ibis_vega_transform\n", "\n", "import warnings\n", "try:\n", " from ibis.backends import omniscidb as ibis_omniscidb\n", "except ImportError as msg:\n", " warnings.warn(str(msg))\n", " from ibis import omniscidb as ibis_omniscidb\n", "\n", "conn = ibis_omniscidb.connect(\n", " host='metis.mapd.com', user='demouser', password='HyperInteractive',\n", " port=443, database='mapd', protocol= 'https'\n", ")" ] }, { "cell_type": "code", "execution_count": 11, "metadata": { "execution": { "iopub.execute_input": "2020-10-02T14:32:58.530482Z", "iopub.status.busy": "2020-10-02T14:32:58.530245Z", "iopub.status.idle": "2020-10-02T14:32:59.471518Z", "shell.execute_reply": "2020-10-02T14:32:59.470771Z", "shell.execute_reply.started": "2020-10-02T14:32:58.530454Z" } }, "outputs": [], "source": [ "t = conn.table(\"flights_donotmodify\")" ] }, { "cell_type": "code", "execution_count": 12, "metadata": { "execution": { "iopub.execute_input": "2020-10-02T14:32:59.472998Z", "iopub.status.busy": "2020-10-02T14:32:59.472730Z", "iopub.status.idle": "2020-10-02T14:33:00.008831Z", "shell.execute_reply": "2020-10-02T14:33:00.008137Z", "shell.execute_reply.started": "2020-10-02T14:32:59.472965Z" } }, "outputs": [ { "data": { "text/html": [ "
| \n", " | flight_year | \n", "flight_month | \n", "flight_dayofmonth | \n", "flight_dayofweek | \n", "deptime | \n", "crsdeptime | \n", "arrtime | \n", "crsarrtime | \n", "uniquecarrier | \n", "flightnum | \n", "... | \n", "dest_name | \n", "dest_city | \n", "dest_state | \n", "dest_country | \n", "dest_lat | \n", "dest_lon | \n", "origin_merc_x | \n", "origin_merc_y | \n", "dest_merc_x | \n", "dest_merc_y | \n", "
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 0 | \n", "2008 | \n", "1 | \n", "31 | \n", "4 | \n", "1039 | \n", "1045 | \n", "1258 | \n", "1307 | \n", "XE | \n", "2592 | \n", "... | \n", "Indianapolis International | \n", "Indianapolis | \n", "IN | \n", "USA | \n", "39.717331 | \n", "-86.294388 | \n", "-8256417.5 | \n", "4967090.5 | \n", "-9606247.0 | \n", "4824950.0 | \n", "
| 1 | \n", "2008 | \n", "1 | \n", "5 | \n", "6 | \n", "1713 | \n", "1712 | \n", "2018 | \n", "2010 | \n", "XE | \n", "2227 | \n", "... | \n", "George Bush Intercontinental | \n", "Houston | \n", "TX | \n", "USA | \n", "29.980473 | \n", "-95.339722 | \n", "-10376860.0 | \n", "5602735.5 | \n", "-10613169.0 | \n", "3501040.0 | \n", "
| 2 | \n", "2008 | \n", "1 | \n", "19 | \n", "6 | \n", "1524 | \n", "1530 | \n", "1652 | \n", "1715 | \n", "XE | \n", "1291 | \n", "... | \n", "Newark Intl | \n", "Newark | \n", "NJ | \n", "USA | \n", "40.692497 | \n", "-74.168663 | \n", "-7904260.5 | \n", "5215714.0 | \n", "-8256417.5 | \n", "4967090.5 | \n", "
| 3 | \n", "2008 | \n", "1 | \n", "31 | \n", "4 | \n", "1526 | \n", "1525 | \n", "1742 | \n", "1740 | \n", "XE | \n", "3067 | \n", "... | \n", "Memphis International | \n", "Memphis | \n", "TN | \n", "USA | \n", "35.042416 | \n", "-89.976669 | \n", "-8256417.5 | \n", "4967090.5 | \n", "-10016157.0 | \n", "4169647.0 | \n", "
| 4 | \n", "2008 | \n", "1 | \n", "7 | \n", "1 | \n", "1842 | \n", "1850 | \n", "2057 | \n", "2125 | \n", "XE | \n", "2379 | \n", "... | \n", "Louisville International-Standiford | \n", "Louisville | \n", "KY | \n", "USA | \n", "38.174389 | \n", "-85.736000 | \n", "-8256417.5 | \n", "4967090.5 | \n", "-9544088.0 | \n", "4604090.5 | \n", "
5 rows × 56 columns
\n", "