1. Apprendre
  2. /
  3. Cours
  4. /
  5. Python में Exploratory Data Analysis

Connected

Exercice

वैरिएबल्स के रिश्तों का विज़ुअलाइज़ेशन

पिछले अभ्यास में, आपने देखा होगा कि लंबी marriage_duration का संबंध अधिक बच्चों से है, जिसे num_kids कॉलम दर्शाता है। marriage_duration और num_kids वैरिएबल्स के बीच का correlation coefficient 0.45 है.

इस अभ्यास में, आप इन वैरिएबल्स के रिश्ते को विज़ुअलाइज़ करने के लिए एक scatter plot बनाएँगे। pandas को pd के रूप में, matplotlib.pyplot को plt के रूप में, और Seaborn को sns के रूप में लोड किया गया है। डेटासेट का नाम divorce है।

Instructions

100 XP
  • एक scatterplot बनाएँ जिसमें x-axis पर marriage_duration और y-axis पर num_kids हो।