Bắt đầu ngayBắt đầu miễn phí

Xóa một Expectation

Trong bài tập này, bạn sẽ luyện cách xóa một Expectation khỏi một Expectation Suite. Các biến sau đã được gán sẵn:

  • expectation: Expectation cần xóa
  • suite: Expectation Suite chứa expectation
  • validation_definition: Validation Definition cho Expectation Suite
  • dataframe: pandas DataFrame sẽ chạy qua Validation Definition

Great Expectations và pandas lần lượt có sẵn dưới dạng gxpd.

Bài tập này là một phần của khóa học

Nhập môn Data Quality với Great Expectations

Xem khóa học

Hướng dẫn bài tập

  • Xóa Expectation expectation khỏi Expectation Suite.
  • Lưu các thay đổi vào Expectation Suite.
  • Chạy lại Validation Definition.

Bài tập tương tác thực hành trực tiếp

Hãy thử làm bài tập này bằng cách hoàn thành đoạn mã mẫu này.

# Delete the Expectation
suite.____(
  expectation=expectation
)

# Save changes
suite.____()

# Run the Validation Definition
validation_definition.run(
  batch_parameters={____: ____}
)
Chỉnh sửa và Chạy Mã