From the course: Data Science for Java Developers
Unlock this course with a free trial
Join today to access over 22,600 courses taught by industry experts.
Loading tab-separated files - Java Tutorial
From the course: Data Science for Java Developers
Loading tab-separated files
- [Instructor] So at this point, we've seen how to basically load data from a text file by getting all the lines and then parsing each of those lines into an actual object. We're going to do another example of this just to solidify all the concepts we've covered so far and instead of using the adult data that we've seen we're going to actually use a different data set called auto mpg and basically what this data set includes is data about cars, their model, make year, weight and miles per gallon. And you can see all this in the auto mpg.data file and auto mpg.names file, which just like in the adult.names file contains basically all of the relevant information about the data set. So we can see that it's got miles per gallon, it's got the number of cylinders, the displacement, horsepower, weight, its acceleration, model year, et cetera. And you're going to see also that it's warning us that we do have some missing values…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
(Locked)
Reducing file size5m 20s
-
(Locked)
Loading data from text files3m 29s
-
(Locked)
Creating a person data class3m 56s
-
(Locked)
Converting strings to data objects5m 39s
-
(Locked)
Loading tab-separated files9m 20s
-
(Locked)
Loading CSVs5m 21s
-
(Locked)
Converting CSVs to data objects7m 4s
-
(Locked)
Challenge: Manipulating data2m 1s
-
(Locked)
Solution: Manipulating data3m 37s
-
(Locked)
-
-
-
-