1. Learn
  2. /
  3. Courses
  4. /
  5. Introduction to Data Quality with Great Expectations

Connected

Exercise

Establish a Column Name Expectation

In this exercise, you'll be writing an Expectation regarding the schema of the Renewable Power Generation dataset.

The Renewable Power Generation dataset has already been loaded into a Batch, assigned to the variable batch. Great Expectations and pandas are available as gx and pd, respectively.

Instructions 1/2

undefined XP
    1
    2
  • Create an Expectation that the dataset contains a column named "temperature".
  • Validate the Expectation.
  • Print out whether or not your Expectation was successful.