Exercise: Reading Auto MPG Dataset

This lesson provides an exercise to test your understanding of reading a dataset using Pandas.

We'll cover the following

Reading the dataset

As an exercise, read Auto MPG Dataset. In this documentation, you will find the Attribute Information which lists the column names. Fill whitespace with _ in columns’ names.

Click Data Folder and then download the file auto-mpg.data. The task is fairly simple, you just have to read the dataset, and return its shape.

This file is whitespace delimited, so you will need to review the Pandas documentation for the delim_whitespace parameter.

Note: To read the dataset use auto-mpg.data file name.

Try to implement the function below. Feel free to view the solution, after giving it a few shots. Good Luck!

Get hands-on with 1200+ tech skills courses.