复制一个 Expectation
在本练习中,您将练习把一个 Expectation 从一个 Expectation Suite 复制到另一个,并且不产生错误。我们已经为您创建了两个 Expectation Suite:一个名为 suite,另一个名为 new_suite。您需要复制的 Expectation 已赋值给变量 expectation。Great Expectations 和 pandas 分别可用作 gx 和 pd。
本练习是课程的一部分
使用 Great Expectations 的数据质量入门
交互式实操练习
通过完成这段示例代码来试试这个练习。
# Copy Expectation
expectation_copy = expectation.____()
# Set New Expectation ID to None
expectation_copy.____ = ____