MulaiMulai sekarang secara gratis

Copy an Expectation

In this exercise, you'll practice copying an Expectation from one Expectation Suite to another, without producing an error. Two Expectation Suites have already been created for you: one called suite and one called new_suite. The Expectation you will copy has been assigned to the variable expectation. 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.

# Copy Expectation
expectation_copy = expectation.____()

# Set New Expectation ID to None
expectation_copy.____ = ____
Edit dan Jalankan Kode