開始使用免費開始

建立列層級的 Expectations

在這個練習中,你會實作一些針對欄位、作用於列層級的 Expectations。你會使用與影片相同的 Shein 鞋類資料集。你可以在這裡進一步了解這個資料集。

Batch 已指派給名為 batch 的變數,並載入了 Shein 鞋類資料集。Great Expectations 與 pandas 分別可用作 gxpd

本練習屬於課程

Great Expectations 資料品質入門

檢視課程

動手互動練習

試著完成這個範例程式碼,體驗一下這個練習。

# Establish missingness Expectation
expectation = gx.expectations.____(
  column="name"
)

# Run the Expectation
validation_results = batch.____(expect=expectation)

# Print the success status
print(validation_results.____)
編輯並執行程式碼