Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
guipsamora
GitHub Repository: guipsamora/pandas_exercises
Path: blob/master/07_Visualization/Scores/Solutions.ipynb
548 views
Kernel: Python 2

Scores

Introduction:

This time you will create the data.

Exercise based on Chris Albon work, the credits belong to him.

Step 1. Import the necessary libraries

import pandas as pd import matplotlib.pyplot as plt import numpy as np %matplotlib inline

Step 2. Create the DataFrame it should look like below.

Step 3. Create a Scatterplot of preTestScore and postTestScore, with the size of each point determined by age

Hint: Don't forget to place the labels

<matplotlib.text.Text at 0x114e89d10>
Image in a Jupyter notebook

Step 4. Create a Scatterplot of preTestScore and postTestScore.

This time the size should be 4.5 times the postTestScore and the color determined by sex

<matplotlib.text.Text at 0x11608c250>
Image in a Jupyter notebook

BONUS: Create your own question and answer it.