1. Learn
  2. /
  3. Courses
  4. /
  5. Introduction to Data Visualization with Seaborn

Connected

Exercise

"Tidy" vs. "untidy" data

Here, we have a sample dataset from a survey of children about their favorite animals. But can we use this dataset as-is with Seaborn? Let's use pandas to import the csv file with the data collected from the survey and determine whether it is tidy, which is essential to having it work well with Seaborn.

To get you started, the filepath to the csv file has been assigned to the variable csv_filepath.

Note that because csv_filepath is a Python variable, you will not need to put quotation marks around it when you read the csv.

Instructions 1/2

undefined XP
    1
    2
  • Read the csv file located at csv_filepath into a DataFrame named df.
  • Print the head of df to show the first five rows.