{ "cells": [ { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [ { "data": { "text/html": [ "
| vehicle | year | msrp | acceleration | mpg | class | \n", "
|---|---|---|---|---|---|
| Prius (1st Gen) | 1997 | 24509.7 | 7.46 | 41.26 | Compact | \n", "
| Tino | 2000 | 35355 | 8.2 | 54.1 | Compact | \n", "
| Prius (2nd Gen) | 2000 | 26832.2 | 7.97 | 45.23 | Compact | \n", "
| Civic (1st Gen) | 2001 | 25833.4 | 7.04 | 47.04 | Compact | \n", "
| Alphard | 2003 | 38084.8 | 8.33 | 40.46 | Minivan | \n", "
| Civic | 2003 | 14071.9 | 8.62 | 41 | Compact | \n", "
| Escape | 2004 | 36676.1 | 10.32 | 31.99 | SUV | \n", "
| Lexus RX400h | 2005 | 58521.1 | 12.76 | 28.23 | SUV | \n", "
| Civic (2nd Gen) | 2005 | 26354.4 | 7.63 | 39.99 | Compact | \n", "
| Highlander | 2005 | 29186.2 | 12.76 | 29.4 | SUV | \n", "
... (65 rows omitted)
" ], "text/plain": [ "vehicle | year | msrp | acceleration | mpg | class\n", "Prius (1st Gen) | 1997 | 24509.7 | 7.46 | 41.26 | Compact\n", "Tino | 2000 | 35355 | 8.2 | 54.1 | Compact\n", "Prius (2nd Gen) | 2000 | 26832.2 | 7.97 | 45.23 | Compact\n", "Civic (1st Gen) | 2001 | 25833.4 | 7.04 | 47.04 | Compact\n", "Alphard | 2003 | 38084.8 | 8.33 | 40.46 | Minivan\n", "Civic | 2003 | 14071.9 | 8.62 | 41 | Compact\n", "Escape | 2004 | 36676.1 | 10.32 | 31.99 | SUV\n", "Lexus RX400h | 2005 | 58521.1 | 12.76 | 28.23 | SUV\n", "Civic (2nd Gen) | 2005 | 26354.4 | 7.63 | 39.99 | Compact\n", "Highlander | 2005 | 29186.2 | 12.76 | 29.4 | SUV\n", "... (65 rows omitted)" ] }, "execution_count": 1, "metadata": {}, "output_type": "execute_result" } ], "source": [ "from datascience import *\n", "import numpy as np\n", "\n", "%matplotlib inline\n", "import matplotlib.pyplot as plots\n", "plots.style.use('fivethirtyeight')\n", "\n", "cars = Table.read_table('hybrid.csv')\n", "\n", "cars = cars.where('class', are.contained_in(\"Compact SUV Minivan\"))\n", "cars" ] }, { "cell_type": "code", "execution_count": 13, "metadata": {}, "outputs": [ { "data": { "text/html": [ "\n", "To show/hide this cell's raw code input, click here." ], "text/plain": [ "