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

Solution: Describe a dataset

From the course: Learning Amazon SageMaker

Start my 1-month free trial

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…

Contents