From the course: Data Science Foundations: Data Assessment for Predictive Modeling

Unlock the full course today

Join today to access over 22,500 courses taught by industry experts or purchase this course individually.

Solution: Producing multivariate visualizations for case study 1

Solution: Producing multivariate visualizations for case study 1

From the course: Data Science Foundations: Data Assessment for Predictive Modeling

Start my 1-month free trial

Solution: Producing multivariate visualizations for case study 1

(electronic music) - [Instructor] Okay, let's imitate this in the Titanic data set. First you're going to need a command, something like this. Please be cognizant of the fact that your file structure might not be the same on your machine, but I'm reading it in from the originals folder, and I'm going to call the data set simply train. Also, I have handy the code that we used for the census data set. So the most fundamental piece is this piece. And what this is doing is telling it that the two variables are work class and hours, but that we want a box plot. So hours was our scale variable, and our scale variable on the Titanic data set is going to be age, so we can replace that. And rather than work class recoded, we have passenger class. That alone will produce a result. That's an interesting error that I've made. Let's bring it down. Perhaps you already spotted the mistake that I made is I'm still referring to…

Contents