Skip to content
C

Problem 1: Create a Boxplot Grouped by Category

Easypython

Problem Description

Write a Python program that uses sns.boxplot() to show the distribution of exam scores across three different study groups.

Input

A DataFrame with "study_group" and "score" columns.

Output

A displayed boxplot with one box per group.

Constraints

  • At least 3 groups, with multiple scores each.

Example Input

text
{"study_group": ["A","A","B","B","C","C"], "score": [65,70,80,85,90,95]}

Example Output

text
(A boxplot showing 3 separate distributions, one per study group)

Concepts Covered

sns.boxplot(), categorical grouping.

Input (stdin)

Output

Run your code to see output here...