बेस टेबल की जाँच-पड़ताल
मॉडल बनाने से पहले, जिस डेटा पर आप काम कर रहे हैं उसे समझना ज़रूरी है. इस अभ्यास में, आप दिए गए basetable से population size, targets की संख्या और target incidence निकालना सीखेंगे.
यह अभ्यास पाठ्यक्रम का हिस्सा है
Python में प्रिडिक्टिव एनालिटिक्स परिचय
अभ्यास निर्देश
- basetable एक pandas ऑब्जेक्ट
basetableमें लोड है. पंक्तियों की संख्या वैरिएबलpopulation_sizeको असाइन करें और उसे प्रिंट करें. - 1 के बराबर targets की संख्या वैरिएबल
targets_countको असाइन करें और उसे प्रिंट करें. - target incidence प्रिंट करें, यह
targets_countऔरpopulation_sizeका अनुपात है.
इंटरैक्टिव व्यावहारिक अभ्यास
इस अभ्यास को इस नमूना कोड को पूरा करके आज़माएँ।
# Assign the number of rows in the basetable to the variable 'population_size'.
population_size = ____(____)
# Print the population size.
print(____)
# Assign the number of targets to the variable 'targets_count'.
targets_count = ____(____[____])
# Print the number of targets.
print(____)
# Print the target incidence.
print(____ / ____)