Parsing Comma Separated Value (CSV) Files using Univocity
Another very common file type that data scientists handle is Comma Separated Value (CSV) files, where data is separated by commas. CSV files are very popular because they can be read by most of the spreadsheet applications, such as MS Excel.
In this recipe, we will see how we can parse CSV files and handle data points retrieved from them.
In order to perform this recipe, we will require the following:
- Download the Univocity JAR file from http://oss.sonatype.org/content/repositories/releases/com/univocity/univocity-parsers/2.2.1/univocity-parsers-2.2.1.jar. Include the JAR file in your project in Eclipse as external library.
- Create a CSV file from the following data using Notepad. ...