Skip to content
C

Problem 2: Handle a Custom Delimiter

Easypython

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.

Input (stdin)

Output

Run your code to see output here...