From the course: Scala Essential Training for Data Science

Unlock this course with a free trial

Join today to access over 25,000 courses taught by industry experts.

Challenge: Creating a dataset

Challenge: Creating a dataset

(bright music) - [Instructor] It is time for a challenge again. I'd like you to create a case class statement for a location with three attributes, or three columns. An ID, a city, and a country. Now here's an example of some example data that we can use for this challenge. And I'd like you to create a sequence by creating a value called locationData, which is a sequence of three different locations, and the locations will be New York, London, and Paris. And once you have created those, I'd like you to create a Dataset based on that locationData sequence.

Contents