Skip to content

Commit

Permalink
Clear execution in quick-start notebook.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin Moore committed Feb 13, 2018
1 parent c7efdee commit 9853b56
Showing 1 changed file with 25 additions and 22 deletions.
47 changes: 25 additions & 22 deletions QuickStart.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,6 @@
"dataset."
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"!pip install -r requirements.txt"
]
},
{
"cell_type": "code",
"execution_count": null,
Expand All @@ -26,8 +17,7 @@
"source": [
"import quilt\n",
"import numpy as np\n",
"import pandas as pd\n",
"quilt.install('ResidentMario/missingno_data', force=True)"
"import pandas as pd"
]
},
{
Expand Down Expand Up @@ -228,9 +218,7 @@
"supports visualizing geospatial data nullity patterns with a geoplot visualization. This is an experimental data \n",
"visualization type, and requires the [`geoplot`](https://github.com/ResidentMario/geoplot) and [`geopandas`](http://geopandas.org/) \n",
"libraries. These are optional dependencies are must be installed separately from the rest of `missingno`. Once you \n",
"have them you can run:\n",
"\n",
" "
"have them you can run:"
]
},
{
Expand Down Expand Up @@ -258,14 +246,22 @@
"small datasets like this sample one.\n",
"\n",
"If you can specify a geographic grouping within the dataset, you can plot your data as a set of minimum-enclosure \n",
"[convex hulls](https://en.wikipedia.org/wiki/Convex_hull) instead:\n",
"\n",
" >>> msno.geoplot(collisions, x='LONGITUDE', y='LATITUDE', by='ZIP CODE')\n",
"\n",
"![alt-text][hull-geoplot]\n",
"\n",
"[hull-geoplot]: https://i.imgur.com/osnPwEE.png\n",
"\n",
"[convex hulls](https://en.wikipedia.org/wiki/Convex_hull) instead:"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"msno.geoplot(collisions, x='LONGITUDE', y='LATITUDE', by='ZIP CODE')"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Convex hulls are usually more interpretable than the quadtree, especially when the underlying dataset is relatively \n",
"small (as this one is). We again see a data nullity distribution that's seemingly at random, giving us confidence \n",
"that the nullity of collision records is not geographically variable.\n",
Expand All @@ -283,6 +279,13 @@
"you're interested in contributing to this library, see details on doing so in the `CONTRIBUTING.md` file in this \n",
"repository."
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
Expand Down

0 comments on commit 9853b56

Please sign in to comment.