{ "cells": [ { "cell_type": "code", "execution_count": 1, "id": "778f9586", "metadata": { "lines_to_next_cell": 0 }, "outputs": [], "source": [ "import os\n", "\n", "# Data Wrangling\n", "import numpy as np\n", "import pandas as pd\n", "\n", "# Data Modeling\n", "import statsmodels.api as sm \n", "import statsmodels.formula.api as smf # tilde formulas (y ~ x1 + x2)\n", "\n", "# Graphing\n", "import plotly.express as px # Main interface\n", "import plotly.figure_factory as ff # Specialized plots (dendrograms, density plots)\n", "import plotly.graph_objects as go # Lower level interface" ] }, { "cell_type": "code", "execution_count": 2, "id": "d4468565", "metadata": {}, "outputs": [ { "data": { "text/html": [ "
\n", " | Unnamed: 0 | \n", "species | \n", "island | \n", "bill_length_mm | \n", "bill_depth_mm | \n", "flipper_length_mm | \n", "body_mass_g | \n", "sex | \n", "year | \n", "
---|---|---|---|---|---|---|---|---|---|
0 | \n", "1 | \n", "Adelie | \n", "Torgersen | \n", "39.1 | \n", "18.7 | \n", "181.0 | \n", "3750.0 | \n", "male | \n", "2007 | \n", "
1 | \n", "2 | \n", "Adelie | \n", "Torgersen | \n", "39.5 | \n", "17.4 | \n", "186.0 | \n", "3800.0 | \n", "female | \n", "2007 | \n", "
2 | \n", "3 | \n", "Adelie | \n", "Torgersen | \n", "40.3 | \n", "18.0 | \n", "195.0 | \n", "3250.0 | \n", "female | \n", "2007 | \n", "
3 | \n", "4 | \n", "Adelie | \n", "Torgersen | \n", "NaN | \n", "NaN | \n", "NaN | \n", "NaN | \n", "NaN | \n", "2007 | \n", "
4 | \n", "5 | \n", "Adelie | \n", "Torgersen | \n", "36.7 | \n", "19.3 | \n", "193.0 | \n", "3450.0 | \n", "female | \n", "2007 | \n", "
... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "
339 | \n", "340 | \n", "Chinstrap | \n", "Dream | \n", "55.8 | \n", "19.8 | \n", "207.0 | \n", "4000.0 | \n", "male | \n", "2009 | \n", "
340 | \n", "341 | \n", "Chinstrap | \n", "Dream | \n", "43.5 | \n", "18.1 | \n", "202.0 | \n", "3400.0 | \n", "female | \n", "2009 | \n", "
341 | \n", "342 | \n", "Chinstrap | \n", "Dream | \n", "49.6 | \n", "18.2 | \n", "193.0 | \n", "3775.0 | \n", "male | \n", "2009 | \n", "
342 | \n", "343 | \n", "Chinstrap | \n", "Dream | \n", "50.8 | \n", "19.0 | \n", "210.0 | \n", "4100.0 | \n", "male | \n", "2009 | \n", "
343 | \n", "344 | \n", "Chinstrap | \n", "Dream | \n", "50.2 | \n", "18.7 | \n", "198.0 | \n", "3775.0 | \n", "female | \n", "2009 | \n", "
344 rows × 9 columns
\n", "