열 이름 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(____.____)