A scatter plot is used to compare distribution of two variables and see whether there is any correlation between them. If there are distinct clusters/segments within the data, it will be clear in the scatter plot.
Scatter plot
Getting ready
Import the following libraries:
import matplotlib.pyplot as plt
import pandas as pd
We will use pandas to read the Excel files.
How to do it...
The following code block draws a scatter plot that depicts the relationship between the age and the weight of people:
- Set the figure size (width and height) to (10, 6) inches:
plt.figure(figsize...