Skip to content
CampusEduX

Problem 2: Handle a Custom Delimiter

Easypython
Learn the Concept: Loading Datasets

Problem Description

Write a Python program that loads a CSV file that uses a semicolon (;) as its delimiter instead of a comma, and prints the resulting DataFrame.

Input

A semicolon-delimited CSV file path.

Output

The correctly loaded DataFrame.

Constraints

  • The file uses ; consistently as its delimiter.

Example Input

text
"data_semicolon.csv"

Example Output

text
(DataFrame correctly split into columns, not loaded as one single column)

Concepts Covered

pd.read_csv(), the sep parameter.

Related Problems

  • Problem 1: Load and Inspect a CSV File
    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...