Get startedGet started for free

Validation Definition vs. Batch Definition

Now, let's practice validating your Expectation Suite using two different techniques.

The Renewable Power Generation dataset has already been loaded into a pandas DataFrame dataframe and read into a Batch Definition batch_definition. An Expectation Suite has been created and assigned to the variable suite. Great Expectations and pandas are available as gx and pd, respectively.

This exercise is part of the course

Introduction to Data Quality with Great Expectations

View Course

Hands-on interactive exercise

Have a go at this exercise by completing this sample code.

# Create Validation Definition
validation_definition = gx.____(
  data=batch_definition,
  suite=suite, 
  name="my_validation_definition"
)

# Validate Expectation Suite
validation_results = ____.run(
    batch_parameters={"dataframe": dataframe}
)

# Describe Validation Results
print(validation_results.____)
Edit and Run Code