カラム名のExpectationを設定する
この演習では、Renewable Power Generation データセットのスキーマに関するExpectationを書きます。
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(____.____)