Importing a Dataset from a CSV File
Now that we've seen some basic patterns for manipulating data, it's time to be more ambitious! We are going to start using a dataset that we will use in many of the following chapters as we build up our Clojure knowledge: ATP World Tour tennis data, a CSV file that includes, among other things, information about professional tennis matches going back to 1871. Besides learning about new concepts and techniques, we will see that Clojure can be an interesting choice for exploring and manipulating large datasets. And, naturally, most of the datasets that are available to us are CSV files.
Note
This dataset was created and is maintained at https://packt.live/2Fq30kk, and is available under the Creative Commons 4.0 International License. The files that we'll be using here are also available at https://packt.live/37DCkZn.
In the rest of this chapter, we will import tennis match data from a CSV file and use our mapping and filtering...