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

กำหนด Expectation สำหรับชื่อคอลัมน์

ในแบบฝึกหัดนี้ จะได้เขียน Expectation เกี่ยวกับ schema ของชุดข้อมูล Renewable Power Generation

ชุดข้อมูล Renewable Power Generation ถูกโหลดลงใน Batch แล้ว และกำหนดให้ตัวแปร batch Great Expectations และ pandas พร้อมใช้งานในชื่อ gx และ pd ตามลำดับ

แบบฝึกหัดนี้เป็นส่วนหนึ่งของหลักสูตร

การตรวจสอบคุณภาพข้อมูลด้วย Great Expectations เบื้องต้น

ดูคอร์ส

แบบฝึกหัดเชิงโต้ตอบแบบลงมือทำ

ลองทำแบบฝึกหัดนี้โดยเติมโค้ดตัวอย่างนี้ให้สมบูรณ์

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

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

# Print out success status of Validation Results
print(____.____)
แก้ไขและรันโค้ด