Session Ready
Exercise

Reading a csv file

Before you analyze data, you will need to read the data into a pandas DataFrame. In this exercise, you will be looking at data from US School Improvement Grants in 2010. This program gave nearly $4B to schools to help them renovate or improve their programs.

This first step in most data analysis is to import pandas and seaborn and read a data file in order to analyze it further.

This course introduces a lot of new concepts, so if you ever need a quick refresher, download the Seaborn Cheat Sheet and keep it handy!

Instructions
100 XP
  • Import pandas and seaborn using the standard naming conventions.
  • The path to the csv file is stored in the grant_file variable.
  • Use pandas to read the file.
  • Store the resulting DataFrame in the variable df.