Giter VIP home page Giter VIP logo

pandas-challenge's Introduction

Pandas-Challenge

Using Pandas and Jupyter Notebook, create a report that includes the following data. Your report must include a written description of at least two observable trends based on the data.

Analysis This analysis depicts the relationship between different aspects related to High School education. These are all High School related aspects and these include: School name, Student's name, Size, Amount of students, Budget, Type, Scores per student and high school, among others.

The School Summary Analysis illustrates a higher "Percent Overall Passing Score" for schools that are catalogized as type "Charter" over those that are catalogized as type "District".

In the same way, the School Summary Analyis depicts higher scores for "Percent Passing Reading" overall for most High Schools, over the scores for "Percent Passing Math".

District Summary Perform the necessary calculations and then create a high-level snapshot of the district's key metrics in a DataFrame.

Include the following:

  1. Total number of unique schools
  2. Total students
  3. Total budget
  4. Average math score
  5. Average reading score
  6. % passing math (the percentage of students who passed math)
  7. % passing reading (the percentage of students who passed reading)
  8. % overall passing (the percentage of students who passed math AND reading)

School Summary Perform the necessary calculations and then create a DataFrame that summarizes key metrics about each school.

Include the following:

  1. School name
  2. School type
  3. Total students
  4. Total school budget
  5. Per student budget
  6. Average math score
  7. Average reading score
  8. % passing math (the percentage of students who passed math)
  9. % passing reading (the percentage of students who passed reading)
  10. % overall passing (the percentage of students who passed math AND reading)

Highest-Performing Schools (by % Overall Passing) Sort the schools by % Overall Passing in descending order and display the top 5 rows. Save the results in a DataFrame called "top_schools".

Lowest-Performing Schools (by % Overall Passing) Sort the schools by % Overall Passing in ascending order and display the top 5 rows. Save the results in a DataFrame called "bottom_schools".

Math Scores by Grade Perform the necessary calculations to create a DataFrame that lists the average math score for students of each grade level (9th, 10th, 11th, 12th) at each school.

Reading Scores by Grade Create a DataFrame that lists the average reading score for students of each grade level (9th, 10th, 11th, 12th) at each school.

Scores by School Spending Create a table that breaks down school performance based on average spending ranges (per student). Use the code provided below to create four bins with reasonable cutoff values to group school spending.

spending_bins = [0, 585, 630, 645, 680] labels = ["<$585", "$585-630", "$630-645", "$645-680"] Use pd.cut to categorize spending based on the bins.

Use the following code to then calculate mean scores per spending range.

spending_math_scores = school_spending_df.groupby(["Spending Ranges (Per Student)"])["Average Math Score"].mean() spending_reading_scores = school_spending_df.groupby(["Spending Ranges (Per Student)"])["Average Reading Score"].mean() spending_passing_math = school_spending_df.groupby(["Spending Ranges (Per Student)"])["% Passing Math"].mean() spending_passing_reading = school_spending_df.groupby(["Spending Ranges (Per Student)"])["% Passing Reading"].mean() overall_passing_spending = school_spending_df.groupby(["Spending Ranges (Per Student)"])["% Overall Passing"].mean() Use the scores above to create a DataFrame called spending_summary.

Include the following metrics in the table:

  1. Average math score
  2. Average reading score
  3. % passing math (the percentage of students who passed math)
  4. % passing reading (the percentage of students who passed reading)
  5. % overall passing (the percentage of students who passed math AND reading)

Scores by School Size Use the following code to bin the per_school_summary.

size_bins = [0, 1000, 2000, 5000] labels = ["Small (<1000)", "Medium (1000-2000)", "Large (2000-5000)"] Use pd.cut on the "Total Students" column of the per_school_summary DataFrame.

Create a DataFrame called size_summary that breaks down school performance based on school size (small, medium, or large).

Scores by School Type Use the per_school_summary DataFrame from the previous step to create a new DataFrame called type_summary.

This new DataFrame should show school performance based on the "School Type".

pandas-challenge's People

Contributors

rv922 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.