現在,來練習建立你的第一個 Expectation Suite。Data Context 已為你建立好。Great Expectations 與 pandas 分別可用 gx 和 pd 存取。
gx
pd
本練習屬於課程
試著完成這個範例程式碼,體驗一下這個練習。
# Create Expectation Suite suite = gx.____( name="____" )
了解為什麼 Great Expectations(GX)是監控資料品質的強大工具。熟悉 GX 基礎,包括如何使用 Data Context 啟動工作階段,以及如何透過 Data Source、Data Asset 與 Batch Definition 載入 pandas DataFrame。
建立並評估基本的資料形狀與綱要(schema)Expectations。你可以個別驗證 Expectations、將其作為含有 Batch Definition 的 Expectation Suite 來驗證,或使用 Validation Definition 驗證。
當前練習
學習能應對真實世界中 Expectations 動態變化的實用技巧。使用 Checkpoints 部署 Validation Definitions;更新你的 Expectation Suites;並學會新增、擷取、列出與刪除關鍵的 GX 元件。
全方位深入探索 Expectations 的世界。練習建立基本欄位 Expectations、列與彙總層級的數值 Expectations、字串與字串可解析性(parseability)Expectations 等。也學會只將 Expectations 套用到部分 DataFrame 的列。