행 단위 Expectations 설정하기
이번 연습 문제에서는 행(row) 단위에서 컬럼별 Expectations를 작성해 보겠습니다. 영상에서 사용한 것과 같은 Shein 신발 데이터셋을 사용해요. 데이터셋에 대한 자세한 내용은 여기에서 확인할 수 있습니다.
batch라는 변수에 Shein Footwear 데이터셋이 이미 로드되어 있습니다. Great Expectations와 pandas는 각각 gx, pd로 사용할 수 있어요.
이 연습은 강의의 일부입니다
Great Expectations로 배우는 데이터 품질 입문
실습형 인터랙티브 연습
이 예제를 이 샘플 코드를 완성하여 풀어보세요.
# Establish missingness Expectation
expectation = gx.expectations.____(
column="name"
)
# Run the Expectation
validation_results = batch.____(expect=expectation)
# Print the success status
print(validation_results.____)