Skip to content
C

Problem 1: Create and Explore a DataFrame

Easypython

Problem Description

Write a Python program that creates a DataFrame from a dictionary containing at least 4 students' names and marks, then prints the full DataFrame and its summary statistics using describe().

Input

A dictionary with "name" and "marks" keys, each containing a list of at least 4 values.

Output

The full DataFrame, followed by its summary statistics.

Constraints

  • All marks must be numeric values between 0 and 100.

Example Input

text
{"name": ["Aarav", "Meera", "Kabir", "Diya"], "marks": [78, 92, 65, 88]}

Example Output

text
name marks 0 Aarav 78 1 Meera 92 2 Kabir 65 3 Diya 88 marks count 4.00 mean 80.75 ...

Concepts Covered

pd.DataFrame(), describe().

Input (stdin)

Output

Run your code to see output here...