Skip to content
CampusEduX

Problem 1: Create a Boxplot Grouped by Category

Easypython
Learn the Concept: Seaborn

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.

Related Problems

  • Problem 2: Visualize a Correlation Matrix as a Heatmap
    Easy · python
    Solve Problem
  • Problem 3: Create a Scatter Plot with Categorical Coloring
    Easy · python
    Solve Problem
  • Problem 4: Check Class Balance with a Count Plot
    Easy · python
    Solve Problem

Input (stdin)

Output

Run your code to see output here...