Run ❯
Get your
own Python
server
×
Change Orientation
Change Theme, Dark/Light
Go to 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, ymax=400) plt.xlim(xmin=0, xmax=150) 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