LoslegenKostenlos loslegen

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.

Diese Übung ist Teil des Kurses

Introduction to Data Quality with Great Expectations

Kurs anzeigen

Interaktive Übung

Versuche dich an dieser Übung, indem du diesen Beispielcode vervollständigst.

# 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.____)
Code bearbeiten und ausführen