MulaiMulai sekarang secara gratis

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.

Latihan ini adalah bagian dari kursus

Introduction to Data Quality with Great Expectations

Lihat Kursus

Latihan interaktif praktis

Cobalah latihan ini dengan menyelesaikan kode contoh berikut.

# Create the Expectation
col_name_expectation = gx.expectations.____(
  column=____
)

# Validate the Expectation
validation_results = batch.____(
  expect=____
)

# Print out success status of Validation Results
print(____.____)
Edit dan Jalankan Kode