运行 ❯
获取您
自己的 Python
服务器
×
更改方向
更改主题,深色/浅色
前往 Spaces
prog.py
data.csv
#Three lines to make our compiler able to draw: import sys import matplotlib matplotlib.use('Agg') import pandas as pd import matplotlib.pyplot as plt health_data = pd.read_csv("data.csv", header=0, sep=",") health_data.plot(x ='Average_Pulse', y='Calorie_Burnage', kind='line') plt.ylim(ymin=0) plt.xlim(xmin=0) plt.show() #Two lines to make our compiler able to draw: plt.savefig(sys.stdout.buffer) sys.stdout.flush()
Duration,Average_Pulse,Max_Pulse,Calorie_Burnage,Hours_Work,Hours_Sleep 30,80,120,240,10,7 45,85,120,250,10,7 45,90,130,260,8,7 60,95,130,270,8,7 60,100,140,280,0,7 60,105,140,290,7,8 60,110,145,300,7,8 45,115,145,310,8,8 60,120,150,320,0,8 45,125,150,330,8,8