Skip to content
CampusEduX

Problem 1: Load and Inspect a CSV File

Easypython
Learn the Concept: Loading Datasets

Problem Description

Write a Python program that loads a given CSV file into a DataFrame and prints its shape, first 5 rows, and column data types.

Input

A CSV file path.

Output

The dataset's shape, first 5 rows, and data type information.

Constraints

  • Assume the CSV file has a proper header row.

Example Input

text
"students.csv"

Example Output

text
Shape: (100, 5) (first 5 rows displayed) (data type info displayed)

Concepts Covered

pd.read_csv(), shape, head(), info().

Related Problems

  • Problem 2: Handle a Custom Delimiter
    Easy · python
    Solve Problem
  • Problem 3: Load Multiple CSV Files and Combine Them
    Easy · python
    Solve Problem
  • Problem 4: Load an Excel File and Select a Specific Sheet
    Easy · python
    Solve Problem

Input (stdin)

Output

Run your code to see output here...