Task: Auto-detect CSV Delimiter and Parse File
Task: Auto-detect CSV Delimiter and Parse File: a task in Terminal-Lego-15k (Harbor dataset). Write a Python script that can automatically infer the delimiter of a CSV file and correctly parse it, without requiring the delimiter to be specified manually. The solution must work for both…
The task
Write a Python script that can automatically infer the delimiter of a CSV file and correctly parse it, without requiring the delimiter to be specified manually. The solution must work for both comma-separated (`,`) and semicolon-separated (`;`) CSV files.
Part of PrimeIntellect/Terminal-Lego-15k.