MulaiMulai sekarang secara gratis

Establish row-level Expectations

In this exercise, you'll practice writing some column-specific Expectations at the row level. You'll be using the same Shein footwear dataset from the video. You can learn more about the dataset here.

The Batch has already been assigned to a variable called batch and loaded with the Shein Footwear dataset. 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.

# Establish missingness Expectation
expectation = gx.expectations.____(
  column="name"
)

# Run the Expectation
validation_results = batch.____(expect=expectation)

# Print the success status
print(validation_results.____)
Edit dan Jalankan Kode