ลบ Expectation
ในแบบฝึกหัดนี้ จะได้ฝึกลบ Expectation ออกจาก Expectation Suite โดยมีตัวแปรที่กำหนดค่าไว้แล้วดังนี้
expectation: Expectation ที่ต้องการลบsuite: Expectation Suite ที่มีexpectationอยู่validation_definition: Validation Definition สำหรับ Expectation Suitedataframe: pandas DataFrame ที่จะนำไปรันผ่าน Validation Definition
Great Expectations และ pandas พร้อมใช้งานในชื่อ gx และ pd ตามลำดับ
แบบฝึกหัดนี้เป็นส่วนหนึ่งของหลักสูตร
การตรวจสอบคุณภาพข้อมูลด้วย Great Expectations เบื้องต้น
คำแนะนำการฝึกหัด
- ลบ Expectation
expectationออกจาก Expectation Suite - บันทึกการเปลี่ยนแปลงใน Expectation Suite
- รัน Validation Definition อีกครั้ง
แบบฝึกหัดเชิงโต้ตอบแบบลงมือทำ
ลองทำแบบฝึกหัดนี้โดยเติมโค้ดตัวอย่างนี้ให้สมบูรณ์
# Delete the Expectation
suite.____(
expectation=expectation
)
# Save changes
suite.____()
# Run the Validation Definition
validation_definition.run(
batch_parameters={____: ____}
)