Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Part C: Student Count by Status In this part, we will count the number of students in each of the following groups: students who have

Part C: Student Count by Status
In this part, we will count the number of students in each of the following groups: students who have been
accepted, students who actually enrolled in courses, current students, all former students, alumni, unretained
students, and students who were expelled.
We will now create a three new DataFrames to store student info for students in various categories. We will
then generate the desired counts.
Create a code cell to perform the following tasks:
1. Create a DataFrame named enrolled. This DataFrame should be a subset of the accepted
DataFrame and should contain records only for those students who actually enrolled at the university.
Note that if a student enrolled, then they will have a record in the grades DataFrame. You should
use a filtering join to create this DataFrame.
2. Create a DataFrame named current. This DataFrame should be a subset of the enrolled
DataFrame and should contain records only for those students who are currently enrolled at the
university. That is, students who enrolled, but who do not appear in the alumni, unretained, or
expelled DataFrames. This will require multiple applications of a filtering join.
3. Create a DataFrame named former. This DataFrame should contain records in enrolled that do not
appear in current. This will require a single filtering join.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Security

Authors: Alfred Basta, Melissa Zgola

1st Edition

1435453905, 978-1435453906

More Books

Students also viewed these Databases questions

Question

How can an interest-rate collar be created? AppendixLO1

Answered: 1 week ago