Problem 2: Handle a Custom Delimiter
Easypython
Learn the Concept: Loading DatasetsProblem 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 FileEasy · pythonSolve Problem
- Problem 3: Load Multiple CSV Files and Combine ThemEasy · pythonSolve Problem
- Problem 4: Load an Excel File and Select a Specific SheetEasy · pythonSolve Problem