From the course: Learning Amazon SageMaker
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Solution: Describe a dataset
(upbeat music) - [Instructor] Here's my solution to the problem. So, first of all, I'll create a few extra cells in the Jupyter Notebook just in order two write some code and keep it in line with the different problems. First of all, I'll import pandas as pd and by using that pd object, I can then start interacting with the pandas library. So, first of all, I'll track down what the actual file path is for the cars.csv file. As I mentioned earlier, you can use exclamation point to run commands in shell. And I can see that the folder name is Data sets. If there's a space in the folder name, a back slash, we just escape that and within that folder there's a cars.txt file. Now to import the cars.txt, I'll create a cars_df object and I'll using the pandas library I'll write pd.read_csv. Single quotes. Data sets/cars.txt. So, that will import that txt file into the cars_df object and that will now be a pandas DataFrame, so if I run type around that, it will tell me it's a pandas DataFrame…
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)
Data analysis tools5m 45s
-
(Locked)
Download and import data4m 2s
-
(Locked)
Investigate data4m 1s
-
(Locked)
Data visualization: Categories3m 18s
-
(Locked)
Data visualization: Numerical3m 19s
-
(Locked)
Data summary tools3m 7s
-
(Locked)
Challenge: Describe a dataset40s
-
(Locked)
Solution: Describe a dataset4m 23s
-
(Locked)
-
-
-