컴포넌트 추가 및 목록 확인
이제 Data Context에 컴포넌트를 추가하고, Data Context에 있는 컴포넌트를 나열하는 연습을 해 보겠습니다. 이번 연습에서는 Data Source가 다른 컴포넌트와 어떻게 다른지에 특히 주의해 주세요.
Context는 이미 생성되어 context 변수에 할당되어 있습니다. Great Expectations와 pandas는 각각 gx와 pd로 사용할 수 있습니다.
이 연습은 강의의 일부입니다
Great Expectations로 배우는 데이터 품질 입문
실습형 인터랙티브 연습
이 예제를 이 샘플 코드를 완성하여 풀어보세요.
# List out Expectation Suites
print(context.suites.all())
# Add Expectation Suite to Data Context
suite = context.____.____(
gx.ExpectationSuite(name="my_suite")
)
# List out Expectation Suites again
print(context.suites.____)