एक Column Name Expectation स्थापित करें
इस अभ्यास में, आप Renewable Power Generation डेटासेट की स्कीमा से संबंधित एक Expectation लिखेंगे.
Renewable Power Generation डेटासेट पहले से ही एक Batch में लोड किया गया है और वैरिएबल batch को असाइन है. Great Expectations और pandas क्रमशः gx और pd के रूप में उपलब्ध हैं.
यह अभ्यास पाठ्यक्रम का हिस्सा है
Great Expectations के साथ Data Quality परिचय
इंटरैक्टिव व्यावहारिक अभ्यास
इस अभ्यास को इस नमूना कोड को पूरा करके आज़माएँ।
# Create the Expectation
col_name_expectation = gx.expectations.____(
column=____
)
# Validate the Expectation
validation_results = batch.____(
expect=____
)
# Print out success status of Validation Results
print(____.____)