Exercise

CSV to DataFrame

You work for an airline, and your manager has asked you to do a competitive analysis and see how often passengers flying on other airlines are involuntarily bumped from their flights. You got a CSV file (airline_bumping.csv) from the Department of Transportation containing data on passengers that were involuntarily denied boarding in 2016 and 2017, but it doesn't have the exact numbers you want. In order to figure this out, you'll need to get the CSV into a pandas DataFrame and do some manipulation!

pandas is imported for you as pd. "airline_bumping.csv" is in your working directory.

Instructions 1/4

undefined XP
    1
    2
    3
    4
  • Read the CSV file "airline_bumping.csv" and store it as a DataFrame called airline_bumping.
  • Print the first few rows of airline_bumping.