เริ่มต้นใช้งานเริ่มต้นใช้งานได้ฟรี

ลบ Expectation

ในแบบฝึกหัดนี้ จะได้ฝึกลบ Expectation ออกจาก Expectation Suite โดยมีตัวแปรที่กำหนดค่าไว้แล้วดังนี้

  • expectation: Expectation ที่ต้องการลบ
  • suite: Expectation Suite ที่มี expectation อยู่
  • validation_definition: Validation Definition สำหรับ Expectation Suite
  • dataframe: 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={____: ____}
)
แก้ไขและรันโค้ด