Python Pandas For Your Grandpa - 4.6 Challenge: Class Transitions

Опубликовано: 01 Февраль 2021
на канале: GormAnalysis
230
6

You have a DataFrame called schedules that represents the daily schedule of each student in a school. For example, If Ryan attends four classes - math, english, history, and chemistry, your schedules DataFrame will have four rows for Ryan in the order he attends each class.

You have this idea that the sequence of class-to-class transitions affects students’ grades. For instance, you suspect Ryan would do better in his Chemistry class if it immediately followed his math class instead of his History class.

Determine the average and median Chemistry grade for groups of students based on the class they have immediately prior to Chemistry. Also report how many students fall into each group.

0:00 - intro / setup
0:43 - solution

-- Code -----------------------
https://www.practiceprobs.com/problem...

-- Vids & Playlists ---------------------------------
Google Colab -    • Introduction to Google Colab  
NumPy -    • Python NumPy For Your Grandma  
Pandas -    • Python Pandas For Your Grandpa  
Neural Networks -    • Neural Networks For Your Dog  

-- Subscribe To Mailing List ---------------------------------
https://eepurl.com/hC1Pmj

-- Song ---------------------------------
Bitz by Famous Cats

-- Support -----------------------
https://merchonate.com/gormanalysis