{ "metadata": { "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.7.0" }, "orig_nbformat": 4, "kernelspec": { "name": "python3", "display_name": "Python 3.7.0 64-bit" }, "interpreter": { "hash": "70b38d7a306a849643e446cd70466270a13445e5987dfa1344ef2b127438fa4d" } }, "nbformat": 4, "nbformat_minor": 2, "cells": [ { "cell_type": "markdown", "source": [ "# Let's learn about birds" ], "metadata": {} }, { "cell_type": "markdown", "source": [], "metadata": {} }, { "cell_type": "markdown", "source": [ "Import pandas and matplotlib along with the data" ], "metadata": {} }, { "cell_type": "code", "execution_count": 2, "source": [ "import pandas as pd\n", "import matplotlib.pyplot as plt\n", "birds = pd.read_csv('../../../data/birds.csv')\n", "birds.head()\n" ], "outputs": [ { "output_type": "execute_result", "data": { "text/plain": [ " Name ScientificName \\\n", "0 Black-bellied whistling-duck Dendrocygna autumnalis \n", "1 Fulvous whistling-duck Dendrocygna bicolor \n", "2 Snow goose Anser caerulescens \n", "3 Ross's goose Anser rossii \n", "4 Greater white-fronted goose Anser albifrons \n", "\n", " Category Order Family Genus \\\n", "0 Ducks/Geese/Waterfowl Anseriformes Anatidae Dendrocygna \n", "1 Ducks/Geese/Waterfowl Anseriformes Anatidae Dendrocygna \n", "2 Ducks/Geese/Waterfowl Anseriformes Anatidae Anser \n", "3 Ducks/Geese/Waterfowl Anseriformes Anatidae Anser \n", "4 Ducks/Geese/Waterfowl Anseriformes Anatidae Anser \n", "\n", " ConservationStatus MinLength MaxLength MinBodyMass MaxBodyMass \\\n", "0 LC 47.0 56.0 652.0 1020.0 \n", "1 LC 45.0 53.0 712.0 1050.0 \n", "2 LC 64.0 79.0 2050.0 4050.0 \n", "3 LC 57.3 64.0 1066.0 1567.0 \n", "4 LC 64.0 81.0 1930.0 3310.0 \n", "\n", " MinWingspan MaxWingspan \n", "0 76.0 94.0 \n", "1 85.0 93.0 \n", "2 135.0 165.0 \n", "3 113.0 116.0 \n", "4 130.0 165.0 " ], "text/html": [ "
\n", " | Name | \n", "ScientificName | \n", "Category | \n", "Order | \n", "Family | \n", "Genus | \n", "ConservationStatus | \n", "MinLength | \n", "MaxLength | \n", "MinBodyMass | \n", "MaxBodyMass | \n", "MinWingspan | \n", "MaxWingspan | \n", "
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0 | \n", "Black-bellied whistling-duck | \n", "Dendrocygna autumnalis | \n", "Ducks/Geese/Waterfowl | \n", "Anseriformes | \n", "Anatidae | \n", "Dendrocygna | \n", "LC | \n", "47.0 | \n", "56.0 | \n", "652.0 | \n", "1020.0 | \n", "76.0 | \n", "94.0 | \n", "
1 | \n", "Fulvous whistling-duck | \n", "Dendrocygna bicolor | \n", "Ducks/Geese/Waterfowl | \n", "Anseriformes | \n", "Anatidae | \n", "Dendrocygna | \n", "LC | \n", "45.0 | \n", "53.0 | \n", "712.0 | \n", "1050.0 | \n", "85.0 | \n", "93.0 | \n", "
2 | \n", "Snow goose | \n", "Anser caerulescens | \n", "Ducks/Geese/Waterfowl | \n", "Anseriformes | \n", "Anatidae | \n", "Anser | \n", "LC | \n", "64.0 | \n", "79.0 | \n", "2050.0 | \n", "4050.0 | \n", "135.0 | \n", "165.0 | \n", "
3 | \n", "Ross's goose | \n", "Anser rossii | \n", "Ducks/Geese/Waterfowl | \n", "Anseriformes | \n", "Anatidae | \n", "Anser | \n", "LC | \n", "57.3 | \n", "64.0 | \n", "1066.0 | \n", "1567.0 | \n", "113.0 | \n", "116.0 | \n", "
4 | \n", "Greater white-fronted goose | \n", "Anser albifrons | \n", "Ducks/Geese/Waterfowl | \n", "Anseriformes | \n", "Anatidae | \n", "Anser | \n", "LC | \n", "64.0 | \n", "81.0 | \n", "1930.0 | \n", "3310.0 | \n", "130.0 | \n", "165.0 | \n", "