...

/

Data Loading and Series Attributes

Data Loading and Series Attributes

Learn how to load data and explore the methods and attributes provided for Series in pandas.

We'll cover the following...

There are many operations you can do with a Series. We’ll pull data from the US Fuel Economy website. This site has data on the efficiency of makes and models of cars sold in the US since 1984.

Loading the data

One of the nice features of pandas is that the read_csv function accepts not only URLs but also zip files containing a single .csv file.

If it was a zip file with multiple files, we would need to decompress the data to pull out the file we were interested in.

The first columns in the dataset we’ll investigate are city08 and highway08, which provide ...