{ "cells": [ { "cell_type": "code", "execution_count": 77, "id": "7acc26cb", "metadata": {}, "outputs": [], "source": [ "import pandas as pd\n", "import matplotlib.pyplot as plt" ] }, { "cell_type": "code", "execution_count": 30, "id": "c821dd0a", "metadata": {}, "outputs": [], "source": [ "df = pd.read_csv('https://raw.githubusercontent.com/CunyLaguardiaDataAnalytics/datasets/master/2014-15_To_2016-17_School-_Level_NYC_Regents_Report_For_All_Variables.csv')" ] }, { "cell_type": "code", "execution_count": 31, "id": "e080ce64", "metadata": {}, "outputs": [ { "data": { "text/plain": [ "(212331, 15)" ] }, "execution_count": 31, "metadata": {}, "output_type": "execute_result" } ], "source": [ "df.shape" ] }, { "cell_type": "code", "execution_count": 32, "id": "57651a37", "metadata": { "scrolled": true }, "outputs": [ { "data": { "text/plain": [ "School DBN object\n", "School Name object\n", "School Level object\n", "Regents Exam object\n", "Year int64\n", "Total Tested int64\n", "Mean Score object\n", "Number Scoring Below 65 object\n", "Percent Scoring Below 65 object\n", "Number Scoring 65 or Above object\n", "Percent Scoring 65 or Above object\n", "Number Scoring 80 or Above object\n", "Percent Scoring 80 or Above object\n", "Number Scoring CR object\n", "Percent Scoring CR object\n", "dtype: object" ] }, "execution_count": 32, "metadata": {}, "output_type": "execute_result" } ], "source": [ "df.dtypes" ] }, { "cell_type": "code", "execution_count": 33, "id": "7147a7d1", "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "2015 2017\n" ] } ], "source": [ "# Time range should be 2014-2015 to 2016-2017 school year. Does the 'Year' column reflect this range?\n", "\n", "print(df['Year'].min(), df['Year'].max())" ] }, { "cell_type": "code", "execution_count": 34, "id": "897e335b", "metadata": {}, "outputs": [ { "data": { "text/plain": [ "School DBN 0\n", "School Name 0\n", "School Level 0\n", "Regents Exam 10\n", "Year 0\n", "Total Tested 0\n", "Mean Score 0\n", "Number Scoring Below 65 0\n", "Percent Scoring Below 65 0\n", "Number Scoring 65 or Above 0\n", "Percent Scoring 65 or Above 0\n", "Number Scoring 80 or Above 0\n", "Percent Scoring 80 or Above 0\n", "Number Scoring CR 0\n", "Percent Scoring CR 0\n", "dtype: int64" ] }, "execution_count": 34, "metadata": {}, "output_type": "execute_result" } ], "source": [ "# Is there any missing data?\n", "\n", "df.isna().sum()" ] }, { "cell_type": "code", "execution_count": 35, "id": "e0ab351b", "metadata": {}, "outputs": [ { "data": { "text/html": [ "
\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", " \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", " \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", " \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", " \n", " \n", " \n", " \n", " \n", "
School DBNSchool NameSchool LevelRegents ExamYearTotal TestedMean ScoreNumber Scoring Below 65Percent Scoring Below 65Number Scoring 65 or AbovePercent Scoring 65 or AboveNumber Scoring 80 or AbovePercent Scoring 80 or AboveNumber Scoring CRPercent Scoring CR
1865484M478Inwood Academy for Leadership Charter SchoolSecondary SchoolNaN20159055.66167.82932.266.700
5275684M478Inwood Academy for Leadership Charter SchoolSecondary SchoolNaN20158155.95567.92632.156.200
5275784M478Inwood Academy for Leadership Charter SchoolSecondary SchoolNaN2015953.4666.7333.3111.100
10086584M478Inwood Academy for Leadership Charter SchoolSecondary SchoolNaN20155sssssssnana
10086684M478Inwood Academy for Leadership Charter SchoolSecondary SchoolNaN20155457.434632037611.100
10086784M478Inwood Academy for Leadership Charter SchoolSecondary SchoolNaN201531sssssssnana
13830084M478Inwood Academy for Leadership Charter SchoolSecondary SchoolNaN20155457.33463203759.300
13830184M478Inwood Academy for Leadership Charter SchoolSecondary SchoolNaN20153653.2277592512.800
20978584M478Inwood Academy for Leadership Charter SchoolSecondary SchoolNaN2015125997532518.300
20978684M478Inwood Academy for Leadership Charter SchoolSecondary SchoolNaN20157855.15266.72633.356.400
\n", "
" ], "text/plain": [ " School DBN School Name \\\n", "18654 84M478 Inwood Academy for Leadership Charter School \n", "52756 84M478 Inwood Academy for Leadership Charter School \n", "52757 84M478 Inwood Academy for Leadership Charter School \n", "100865 84M478 Inwood Academy for Leadership Charter School \n", "100866 84M478 Inwood Academy for Leadership Charter School \n", "100867 84M478 Inwood Academy for Leadership Charter School \n", "138300 84M478 Inwood Academy for Leadership Charter School \n", "138301 84M478 Inwood Academy for Leadership Charter School \n", "209785 84M478 Inwood Academy for Leadership Charter School \n", "209786 84M478 Inwood Academy for Leadership Charter School \n", "\n", " School Level Regents Exam Year Total Tested Mean Score \\\n", "18654 Secondary School NaN 2015 90 55.6 \n", "52756 Secondary School NaN 2015 81 55.9 \n", "52757 Secondary School NaN 2015 9 53.4 \n", "100865 Secondary School NaN 2015 5 s \n", "100866 Secondary School NaN 2015 54 57.4 \n", "100867 Secondary School NaN 2015 31 s \n", "138300 Secondary School NaN 2015 54 57.3 \n", "138301 Secondary School NaN 2015 36 53.2 \n", "209785 Secondary School NaN 2015 12 59 \n", "209786 Secondary School NaN 2015 78 55.1 \n", "\n", " Number Scoring Below 65 Percent Scoring Below 65 \\\n", "18654 61 67.8 \n", "52756 55 67.9 \n", "52757 6 66.7 \n", "100865 s s \n", "100866 34 63 \n", "100867 s s \n", "138300 34 63 \n", "138301 27 75 \n", "209785 9 75 \n", "209786 52 66.7 \n", "\n", " Number Scoring 65 or Above Percent Scoring 65 or Above \\\n", "18654 29 32.2 \n", "52756 26 32.1 \n", "52757 3 33.3 \n", "100865 s s \n", "100866 20 37 \n", "100867 s s \n", "138300 20 37 \n", "138301 9 25 \n", "209785 3 25 \n", "209786 26 33.3 \n", "\n", " Number Scoring 80 or Above Percent Scoring 80 or Above \\\n", "18654 6 6.7 \n", "52756 5 6.2 \n", "52757 1 11.1 \n", "100865 s s \n", "100866 6 11.1 \n", "100867 s s \n", "138300 5 9.3 \n", "138301 1 2.8 \n", "209785 1 8.3 \n", "209786 5 6.4 \n", "\n", " Number Scoring CR Percent Scoring CR \n", "18654 0 0 \n", "52756 0 0 \n", "52757 0 0 \n", "100865 na na \n", "100866 0 0 \n", "100867 na na \n", "138300 0 0 \n", "138301 0 0 \n", "209785 0 0 \n", "209786 0 0 " ] }, "execution_count": 35, "metadata": {}, "output_type": "execute_result" } ], "source": [ "df[df['Regents Exam'].isna()]" ] }, { "cell_type": "code", "execution_count": 36, "id": "c9a49215", "metadata": {}, "outputs": [], "source": [ "# Cleaning the data\n", "\n", "# There are ten missing values in the 'Regents Exam' column. One school is responsible.\n", "# We'll drop that school from the dataset\n", "\n", "df.dropna(inplace = True)" ] }, { "cell_type": "code", "execution_count": 42, "id": "738ee993", "metadata": {}, "outputs": [], "source": [ "# We're interested in two score columns. We'll drop the other columns.\n", "\n", "drop_cols = ['Number Scoring Below 65', 'Percent Scoring Below 65', 'Number Scoring 65 or Above', 'Percent Scoring 65 or Above', 'Number Scoring 80 or Above', 'Number Scoring CR', 'Percent Scoring CR']\n", "\n", "df.drop(drop_cols, axis = 1, inplace = True)" ] }, { "cell_type": "code", "execution_count": 44, "id": "258073d0", "metadata": {}, "outputs": [ { "data": { "text/html": [ "
\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", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", "
School DBNSchool NameSchool LevelRegents ExamYearTotal TestedMean ScorePercent Scoring 80 or Above
001M034P.S. 034 Franklin D. RooseveltK-8Common Core Algebra20174ss
101M034P.S. 034 Franklin D. RooseveltK-8Living Environment20151677.943.8
201M034P.S. 034 Franklin D. RooseveltK-8Living Environment201697422.2
301M140P.S. 140 Nathan StrausK-8Common Core Algebra20163ss
401M140P.S. 140 Nathan StrausK-8Common Core Algebra20172ss
\n", "
" ], "text/plain": [ " School DBN School Name School Level \\\n", "0 01M034 P.S. 034 Franklin D. Roosevelt K-8 \n", "1 01M034 P.S. 034 Franklin D. Roosevelt K-8 \n", "2 01M034 P.S. 034 Franklin D. Roosevelt K-8 \n", "3 01M140 P.S. 140 Nathan Straus K-8 \n", "4 01M140 P.S. 140 Nathan Straus K-8 \n", "\n", " Regents Exam Year Total Tested Mean Score \\\n", "0 Common Core Algebra 2017 4 s \n", "1 Living Environment 2015 16 77.9 \n", "2 Living Environment 2016 9 74 \n", "3 Common Core Algebra 2016 3 s \n", "4 Common Core Algebra 2017 2 s \n", "\n", " Percent Scoring 80 or Above \n", "0 s \n", "1 43.8 \n", "2 22.2 \n", "3 s \n", "4 s " ] }, "execution_count": 44, "metadata": {}, "output_type": "execute_result" } ], "source": [ "df.head()" ] }, { "cell_type": "code", "execution_count": 48, "id": "1f05cd97", "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "\n", "Int64Index: 137101 entries, 1 to 212325\n", "Data columns (total 8 columns):\n", " # Column Non-Null Count Dtype \n", "--- ------ -------------- ----- \n", " 0 School DBN 137101 non-null object \n", " 1 School Name 137101 non-null object \n", " 2 School Level 137101 non-null object \n", " 3 Regents Exam 137101 non-null object \n", " 4 Year 137101 non-null int64 \n", " 5 Total Tested 137101 non-null int64 \n", " 6 Mean Score 137101 non-null float64\n", " 7 Percent Scoring 80 or Above 137101 non-null float64\n", "dtypes: float64(2), int64(2), object(4)\n", "memory usage: 9.4+ MB\n" ] } ], "source": [ "# 'Mean Score' and 'Percent Scoring 80 or Above'\n", "\n", "# We expect integers or floats. Instead we have objects.\n", "# Can we convert them to floats?\n", "\n", "# Yes, but first we have to deal with the non-numeric value 's'.\n", "# We don't know what 's' means so let's make a subset\n", "# then convert the scores to floats.\n", "\n", "df = df[df['Mean Score'] != 's']\n", "df['Mean Score'] = pd.to_numeric(df['Mean Score'])\n", "df = df[df['Percent Scoring 80 or Above'] != 's']\n", "df['Percent Scoring 80 or Above'] = pd.to_numeric(df['Percent Scoring 80 or Above'])\n", "df.info()" ] }, { "cell_type": "code", "execution_count": 70, "id": "f86ea927", "metadata": {}, "outputs": [ { "data": { "text/html": [ "
\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", " \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", " \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", " \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", " \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", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", "
School DBNSchool NameSchool LevelRegents ExamYearTotal TestedMean ScorePercent Scoring 80 or Above
222202M605Humanities Preparatory AcademyHigh schoolCommon Core English20163874.236.8
222302M605Humanities Preparatory AcademyHigh schoolCommon Core English20176377.854.0
222402M605Humanities Preparatory AcademyHigh schoolEnglish20156574.130.8
2347902M605Humanities Preparatory AcademyHigh schoolCommon Core English20163074.940.0
2348002M605Humanities Preparatory AcademyHigh schoolCommon Core English2016871.925.0
5985402M605Humanities Preparatory AcademyHigh schoolCommon Core English20162276.845.5
5985702M605Humanities Preparatory AcademyHigh schoolCommon Core English20174577.555.6
5986002M605Humanities Preparatory AcademyHigh schoolEnglish20154973.326.5
10711302M605Humanities Preparatory AcademyHigh schoolCommon Core English20162377.852.2
10711402M605Humanities Preparatory AcademyHigh schoolCommon Core English20161568.813.3
10711502M605Humanities Preparatory AcademyHigh schoolCommon Core English20173677.044.4
10711602M605Humanities Preparatory AcademyHigh schoolCommon Core English20172778.966.7
10711702M605Humanities Preparatory AcademyHigh schoolEnglish20153476.335.3
10711802M605Humanities Preparatory AcademyHigh schoolEnglish20153171.825.8
14886002M605Humanities Preparatory AcademyHigh schoolCommon Core English20161070.030.0
14886102M605Humanities Preparatory AcademyHigh schoolCommon Core English20162275.436.4
14886402M605Humanities Preparatory AcademyHigh schoolCommon Core English2017676.750.0
14886502M605Humanities Preparatory AcademyHigh schoolCommon Core English20171678.650.0
14886602M605Humanities Preparatory AcademyHigh schoolCommon Core English20173476.952.9
14886702M605Humanities Preparatory AcademyHigh schoolCommon Core English2017781.171.4
14886902M605Humanities Preparatory AcademyHigh schoolEnglish20152575.340.0
14887002M605Humanities Preparatory AcademyHigh schoolEnglish20153374.824.2
\n", "
" ], "text/plain": [ " School DBN School Name School Level \\\n", "2222 02M605 Humanities Preparatory Academy High school \n", "2223 02M605 Humanities Preparatory Academy High school \n", "2224 02M605 Humanities Preparatory Academy High school \n", "23479 02M605 Humanities Preparatory Academy High school \n", "23480 02M605 Humanities Preparatory Academy High school \n", "59854 02M605 Humanities Preparatory Academy High school \n", "59857 02M605 Humanities Preparatory Academy High school \n", "59860 02M605 Humanities Preparatory Academy High school \n", "107113 02M605 Humanities Preparatory Academy High school \n", "107114 02M605 Humanities Preparatory Academy High school \n", "107115 02M605 Humanities Preparatory Academy High school \n", "107116 02M605 Humanities Preparatory Academy High school \n", "107117 02M605 Humanities Preparatory Academy High school \n", "107118 02M605 Humanities Preparatory Academy High school \n", "148860 02M605 Humanities Preparatory Academy High school \n", "148861 02M605 Humanities Preparatory Academy High school \n", "148864 02M605 Humanities Preparatory Academy High school \n", "148865 02M605 Humanities Preparatory Academy High school \n", "148866 02M605 Humanities Preparatory Academy High school \n", "148867 02M605 Humanities Preparatory Academy High school \n", "148869 02M605 Humanities Preparatory Academy High school \n", "148870 02M605 Humanities Preparatory Academy High school \n", "\n", " Regents Exam Year Total Tested Mean Score \\\n", "2222 Common Core English 2016 38 74.2 \n", "2223 Common Core English 2017 63 77.8 \n", "2224 English 2015 65 74.1 \n", "23479 Common Core English 2016 30 74.9 \n", "23480 Common Core English 2016 8 71.9 \n", "59854 Common Core English 2016 22 76.8 \n", "59857 Common Core English 2017 45 77.5 \n", "59860 English 2015 49 73.3 \n", "107113 Common Core English 2016 23 77.8 \n", "107114 Common Core English 2016 15 68.8 \n", "107115 Common Core English 2017 36 77.0 \n", "107116 Common Core English 2017 27 78.9 \n", "107117 English 2015 34 76.3 \n", "107118 English 2015 31 71.8 \n", "148860 Common Core English 2016 10 70.0 \n", "148861 Common Core English 2016 22 75.4 \n", "148864 Common Core English 2017 6 76.7 \n", "148865 Common Core English 2017 16 78.6 \n", "148866 Common Core English 2017 34 76.9 \n", "148867 Common Core English 2017 7 81.1 \n", "148869 English 2015 25 75.3 \n", "148870 English 2015 33 74.8 \n", "\n", " Percent Scoring 80 or Above \n", "2222 36.8 \n", "2223 54.0 \n", "2224 30.8 \n", "23479 40.0 \n", "23480 25.0 \n", "59854 45.5 \n", "59857 55.6 \n", "59860 26.5 \n", "107113 52.2 \n", "107114 13.3 \n", "107115 44.4 \n", "107116 66.7 \n", "107117 35.3 \n", "107118 25.8 \n", "148860 30.0 \n", "148861 36.4 \n", "148864 50.0 \n", "148865 50.0 \n", "148866 52.9 \n", "148867 71.4 \n", "148869 40.0 \n", "148870 24.2 " ] }, "execution_count": 70, "metadata": {}, "output_type": "execute_result" } ], "source": [ "# Filter the dataset. Let's have a look at the Humanities Preparatory Academy High School in Chelsea\n", "\n", "df[df['School DBN'] == '02M605']" ] }, { "cell_type": "code", "execution_count": 67, "id": "1cc0ab0a", "metadata": {}, "outputs": [ { "data": { "text/plain": [ "Year\n", "2015 74.266667\n", "2016 73.725000\n", "2017 78.062500\n", "Name: Mean Score, dtype: float64" ] }, "execution_count": 67, "metadata": {}, "output_type": "execute_result" } ], "source": [ "# How did this school perform over three years?\n", "\n", "df[df['School DBN'] == '02M605'].groupby(['Year'])['Mean Score'].mean()" ] }, { "cell_type": "code", "execution_count": 72, "id": "8ad44a32", "metadata": {}, "outputs": [ { "data": { "text/plain": [ "Year\n", "2015 70.562738\n", "2016 70.612695\n", "2017 72.814383\n", "Name: Mean Score, dtype: float64" ] }, "execution_count": 72, "metadata": {}, "output_type": "execute_result" } ], "source": [ "# Other high schools in Manhattan\n", "\n", "df[(df['School DBN'] != '02M605')\n", " & (df['School Level'] == 'High school')\n", " & (df['School DBN'].str.contains('M'))\n", " & (df['Regents Exam']).str.contains('English')\n", " ].groupby(['Year'])['Mean Score'].mean()" ] }, { "cell_type": "code", "execution_count": 74, "id": "3b420509", "metadata": {}, "outputs": [ { "data": { "text/plain": [ "Year\n", "2015 67.399191\n", "2016 65.028724\n", "2017 67.557191\n", "Name: Mean Score, dtype: float64" ] }, "execution_count": 74, "metadata": {}, "output_type": "execute_result" } ], "source": [ "# High schools in Bronx, Queens, Brooklyn and Staten Island\n", "\n", "df[(df['School DBN'] != '02M605')\n", " & (df['School Level'] == 'High school')\n", " & (~df['School DBN'].str.contains('M'))\n", " & (df['Regents Exam']).str.contains('English')\n", " ].groupby(['Year'])['Mean Score'].mean()" ] }, { "cell_type": "code", "execution_count": 105, "id": "7b5fd34a", "metadata": {}, "outputs": [ { "data": { "text/plain": [ "" ] }, "execution_count": 105, "metadata": {}, "output_type": "execute_result" }, { "data": { "image/png": "iVBORw0KGgoAAAANSUhEUgAAAXAAAAEWCAYAAAB/tMx4AAAAOXRFWHRTb2Z0d2FyZQ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hU5dz4DrlJbmQ6afUXQKsAW4FLquqLw7wu9ZU1cNLW6E0GANcq0KSvwQeBM7slk9l+pKztcCbqmpPd1PIP3fHALyyqj7RXWf8RuAQcHFVXbCy1UtzM8C1KiQ5E7gZ+D7wQeD2qnp39wKATzM9Oi/gkar6bpItwDVVNdoF+IeAC6vqy8OoX5qLd2JqVaiqB5NcCzzA9BPrfjXJ73e7TwfOA+4F/ra7SeRh4Kdm/IpPG9462RjgWk0e6X4C/EZV3TlzZ/dG88PARUx/wf/dGbsfXKEapd68CkWr0UeAVyUJQJJLuvYnAYeq6hHg5Ux/4SmdtAxwrUZvBk4DPpvktm4b4O+BsSSfYnr6xFG3Tmp+iSlJjXIELkmNMsAlqVEGuCQ1ygCXpEYZ4JLUKANckhplgEtSowxwSWrU/wNCLPxJAgxBxQAAAABJRU5ErkJggg==\n", "text/plain": [ "
" ] }, "metadata": { "needs_background": "light" }, "output_type": "display_data" } ], "source": [ "# test plot\n", "\n", "df[df['School DBN'] == '02M605'].groupby(['Year'])['Mean Score'].mean().plot(kind = 'bar')" ] }, { "cell_type": "code", "execution_count": null, "id": "b2ab50ef", "metadata": {}, "outputs": [], "source": [] } ], "metadata": { "kernelspec": { "display_name": "Python 3 (ipykernel)", "language": "python", "name": "python3" }, "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.10.4" } }, "nbformat": 4, "nbformat_minor": 5 }