CSV Data

A comma-separated values (CSV) file uses a comma to separate values in the lines of a file. Each line of the file is a data record. CSV is a common data exchange format.

Machine Learning model training and inference processes often use CSV files for data input.

Key aspects include:

  • simplicity

  • human readability

  • wide usage

  • support in many software systems and packages

CSV File Layout

An example of CSV file records is:

"Year","Rating","Title"
1968,86,"Greetings"
1970,17,"Bloody Mama"
1970,73,"Hi, Mom!"
1971,40,"Born to Win"
1973,98,"Mean Streets"
1973,88,"Bang the Drum Slowly"
1974,97,"The Godfather"
1976,41,"The Last Tycoon"
1976,99,"Taxi Driver"
1977,47,"1900"

References