Data Loading and Series Attributes
Explore how to load datasets into pandas from online sources and compressed files. Learn about the variety of Series attributes and methods to manage and analyze data effectively without memorizing all functions.
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 information on ...