Classwork 13

Pandas Fundamental IV-1: Counting Options

Author

Byeong-Hak Choe

Published

April 13, 2026

Modified

April 17, 2026

Direction

The employment.csv file contains a list of employees with information such as gender, team, and whether the employee is a senior manager.

import pandas as pd 
import numpy as np

# Below is for an interactive display of DataFrame in Colab
from google.colab import data_table
data_table.enable_dataframe_formatter()

emp = pd.read_csv(
    "https://bcdanl.github.io/data/employment.csv"
)




Question 1

Write code to count how many employees belong to each team.

Answer:

Question 2

Write code to display the proportion of employees in each gender category.

Answer:

Question 3

Write code to identify the team with the largest portion of senior managers.

Answer:

Question 4

Write code to count the number of employees with salary more than $100,000 for each gender.

Answer:



Discussion

Welcome to our Classwork 13 Discussion Board! πŸ‘‹

This space is designed for you to engage with your classmates about the material covered in Classwork 13.

Whether you are looking to delve deeper into the content, share insights, or have questions about the content, this is the perfect place for you.

If you have any specific questions for Byeong-Hak (@bcdanl) regarding the Classwork 13 materials or need clarification on any points, don’t hesitate to ask here.

All comments will be stored here.

Let’s collaborate and learn from each other!

Back to top