The tasks for this assignment is in the file. I do not have the attached files in pdf form or in Doc form
{ "cells": [ { "cell_type": "code", "execution_count": 27, "id": "3d7d3417", "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Requirement already satisfied: pandas in ./env/lib/python3.8/site-packages (1.2.5)\n", "Requirement already satisfied: python-dateutil>=2.7.3 in ./env/lib/python3.8/site-packages (from pandas) (2.8.1)\n", "Requirement already satisfied: numpy>=1.16.5 in ./env/lib/python3.8/site-packages (from pandas) (1.21.0)\n", "Requirement already satisfied: pytz>=2017.3 in ./env/lib/python3.8/site-packages (from pandas) (2021.1)\n", "Requirement already satisfied: six>=1.5 in ./env/lib/python3.8/site-packages (from python-dateutil>=2.7.3->pandas) (1.16.0)\n", "Requirement already satisfied: numpy in ./env/lib/python3.8/site-packages (1.21.0)\n", "Requirement already satisfied: matplotlib in ./env/lib/python3.8/site-packages (3.4.2)\n", "Requirement already satisfied: python-dateutil>=2.7 in ./env/lib/python3.8/site-packages (from matplotlib) (2.8.1)\n", "Requirement already satisfied: numpy>=1.16 in ./env/lib/python3.8/site-packages (from matplotlib) (1.21.0)\n", "Requirement already satisfied: cycler>=0.10 in ./env/lib/python3.8/site-packages (from matplotlib) (0.10.0)\n", "Requirement already satisfied: kiwisolver>=1.0.1 in ./env/lib/python3.8/site-packages (from matplotlib) (1.3.1)\n", "Requirement already satisfied: pyparsing>=2.2.1 in ./env/lib/python3.8/site-packages (from matplotlib) (2.4.7)\n", "Requirement already satisfied: pillow>=6.2.0 in ./env/lib/python3.8/site-packages (from matplotlib) (8.2.0)\n", "Requirement already satisfied: six in ./env/lib/python3.8/site-packages (from cycler>=0.10->matplotlib) (1.16.0)\n" ] } ], "source": [ "import sys\n", "!{sys.executable} -m pip install pandas\n", "!{sys.executable} -m pip install numpy\n", "!{sys.executable} -m pip install matplotlib" ] }, { "cell_type": "code", "execution_count": 116, "id": "bca30f2e", "metadata": {}, "outputs": [], "source": [ "import pandas as pd\n", "import numpy as np\n", "import matplotlib.pyplot as plt" ] }, { "cell_type": "code", "execution_count": 135, "id": "537ab953", "metadata": {}, "outputs": [], "source": [ "# The file contains 10 most popular baby names from 2017 to 2020. \n", "df = pd.read_csv(\"name_data_2017_2020.csv\")" ] }, { "cell_type": "code", "execution_count": 136, "id": "6dddb58e", "metadata": {}, "outputs": [ { "data": { "text/html": [ "
\n", "\n", " .dataframe tbody tr th:only-of-type {\n", " vertical-align: middle;\n", " }\n", "\n", " .dataframe tbody tr th {\n", " vertical-align: top;\n", " }\n", "\n", " .dataframe thead th {\n", " text-align: right;\n", " }\n", "\n", "\n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", "
|
Name |
Sex |
Frequency |
Year |
---|
0 |
Olivia |
F |
17535 |
2020 |
---|
1 |
Emma |
F |
15581 |
2020 |
---|
2 |
Ava |
F |
13084 |
2020 |
---|
3 |
Charlotte |
F |
13003 |
2020 |
---|
4 |
Sophia |
F |
12976 |
2020 |
---|
\n", "
" ], "text/plain": [ " Name Sex Frequency Year\n", "0 Olivia F 17535 2020\n", "1 Emma F 15581 2020\n", "2 Ava F 13084 2020\n", "3 Charlotte F 13003 2020\n", "4 Sophia F 12976 2020" ] }, "execution_count": 136, "metadata": {}, "output_type": "execute_result" } ], "source": [ "df.head() # Shows the first 5 rows from the input_data" ] }, { "cell_type": "code", "execution_count": 137, "id": "6696edda", "metadata": {}, "outputs": [], "source": [ "### YOUR TASK HERE\n", "# Show only the first 3 rows from the input_data\n", "\n", "# Your code here\n", "\n" ] }, { "cell_type": "code", "execution_count": 138, "id": "cd123398", "metadata": {}, "outputs": [ { "data": { "text/html": [ "
\n", "\n", " .dataframe tbody tr th:only-of-type {\n", " vertical-align: middle;\n", " }\n", "\n", " .dataframe tbody tr th {\n", " vertical-align: top;\n", " }\n"