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

Predictor insight table से जानकारी प्राप्त करना

Predictor insight graph table में predictor insight graph बनाने के लिए ज़रूरी सारी जानकारी होती है. Predictor के हर मान के लिए, इसमें उस मान वाली observations की संख्या और उस समूह के भीतर target incidence होता है. Predictor Country की predictor insight graph table एक pandas ऑब्जेक्ट pig_table के रूप में लोड है. आप indexing का उपयोग करके elements तक पहुँच सकते हैं. उदाहरण के लिए, UK में रहने वाले दाताओं की target incidence प्राप्त करने के लिए, आप यह उपयोग कर सकते हैं:

pig_table["Incidence"][pig_table["Country"]=="UK"]

यह अभ्यास पाठ्यक्रम का हिस्सा है

Python में प्रिडिक्टिव एनालिटिक्स परिचय

पाठ्यक्रम देखें

अभ्यास निर्देश

  • UK दाताओं की संख्या प्रिंट करें.
  • USA दाताओं की target incidence प्रिंट करें.
  • India दाताओं की target incidence प्रिंट करें.

इंटरैक्टिव व्यावहारिक अभ्यास

इस अभ्यास को इस नमूना कोड को पूरा करके आज़माएँ।

# Inspect the predictor insight graph table of Country
print(pig_table)

# Print the number of UK donors
print(pig_table["____"][pig_table["Country"]=="UK"])

# Check the target incidence of USA and India donors
print(pig_table["____"][pig_table["Country"]=="USA"])
print(____)
कोड संपादित करें और चलाएँ