開始使用免費開始

建立欄位名稱的 Expectation

在這個練習中,你要撰寫一個關於再生能源發電資料集之綱要(schema)的 Expectation。

再生能源發電資料集已載入為一個 Batch,並指派給變數 batch。Great Expectations 與 pandas 已可使用,分別為 gxpd

本練習屬於課程

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(____.____)
編輯並執行程式碼