更新一个 Expectation
在上一个练习中,列数量的 Expectation 未通过。本练习中,您将尝试更新该 Expectation,并查看它是否能通过。
可再生能源发电数据集已加载到一个 Batch 中,并赋值给变量 batch。Great Expectations 和 pandas 分别可通过 gx 和 pd 使用。
本练习是课程的一部分
使用 Great Expectations 的数据质量入门
交互式实操练习
通过完成这段示例代码来试试这个练习。
# Update Expectation
expectation.____ = 18
# Save Expectation
expectation.____()