October 2018
Beginner to intermediate
676 pages
18h 30m
English
The following code block draws a scatter plot that depicts the relationship between the age and the weight of people:
plt.figure(figsize=(10,6))
age_weight = pd.read_excel('scatter_ex.xlsx', 'age_weight')x = age_weight['age']y = age_weight['weight']
plt.scatter(x, y)
plt.xlabel('Age')plt.ylabel('Weight)
plt.show()
Read now
Unlock full access