ADD file via upload

master
psx96urfp 3 years ago
parent 6f3d4e8c01
commit 9729fb9126

@ -0,0 +1,9 @@
import pandas as pd
import matplotlib.pyplot as plt
df = pd.DataFrame({'height':[180,170,172,183,179,178,160],
'weight':[85,80,85,75,78,78,70]})
df.plot(x='height', y='weight', kind='scatter',
marker='*', s=60, label='height-weight') #绘制散点图
# plt.figure(figsize=(8,5))
plt.show()
Loading…
Cancel
Save