शुरू करेंमुफ़्त में शुरू करें

बेस टेबल की जाँच-पड़ताल

मॉडल बनाने से पहले, जिस डेटा पर आप काम कर रहे हैं उसे समझना ज़रूरी है. इस अभ्यास में, आप दिए गए 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(____ / ____)
कोड संपादित करें और चलाएँ