Question: Scatter Plots (***I KNOW YOU DO NOT HAVE THE csv FILE TO SHOW THE ACTUAL GRAPH I JUST NEED HELP TROUBLESHOOTING WHERE I AM GOING

Scatter Plots (***I KNOW YOU DO NOT HAVE THE csv FILE TO SHOW THE ACTUAL GRAPH I JUST NEED HELP TROUBLESHOOTING WHERE I AM GOING WRONG**)

The plt.scatter command can be used to create scatter plots where the properties of each individual point (size, face color, edge color, etc.) can be individually controlled or mapped to data.

The color argument is automatically mapped to a color scale, and the size argument is given in pixels. In this way, the color and size of points can be used to convey information in the visualization, in order to visualize multidimensional data.

(cite: excerpt from the Python Data Science Handbook by Jake VanderPlas)

REF: https://www.w3schools.com/python/matplotlib_scatter.asp

REF: https://matplotlib.org/stable/api/_as_gen/matplotlib.pyplot.scatter.html

Note: To create a Scatter Plot you must have X & Y values

1. Create a Python LIST variable named X_VALUES with the values from 0 thru 54 (inclusive) - You can do this easily with LIST comprehension - Your values should be [0,1,2, ... ,54] 2. Create a NumPy array named RATING with the values from the DF_SUPERBOWL['Rating']column 3. Cast RATING to a Python LIST with a variable name Y_VALUES 4. Create a scatter plot using X_VALUES & Y_VALUES 5. Add a title of SuperBowl Ratings 6. Set the title font size = 12, and the font weight = 'bold' 7. Add an X-axis label to the plot. Set the label to Superbowl Number 8. Add an Y-axis label to the plot. Set the label to Ratings 9. Add a grid to the plot. 10. Show the plot

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!