import pandas as pd import numpy as np health_data = pd.read_csv("data.csv", header%=0, sep=",") %3D x = health_data["Average_Pulse"] y = health_data["Calorie_Burnage"] %3D slope_intercept = np.polyfit(x,y,1) %3D print(slope_intercept)

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
100%

Print output in data science

prog.py
data.csv
Duration, Average_Pulse,Max_Pulse,Calorie_Burnage, Hours Work,Hours_Sleep
30,80,120, 240, 10,7
45,85,120, 2se,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
Transcribed Image Text:prog.py data.csv Duration, Average_Pulse,Max_Pulse,Calorie_Burnage, Hours Work,Hours_Sleep 30,80,120, 240, 10,7 45,85,120, 2se,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
import pandas as pd
import numpy as np
health_data = pd.read_csv("data.csv", header=0, sep=",")
x = health_data["Average_Pulse"]
y health_ data["Calorie_Burnage"]
slope_intercept = np.polyfit(x,y,1)
%23
print(slope_intercept)
Transcribed Image Text:import pandas as pd import numpy as np health_data = pd.read_csv("data.csv", header=0, sep=",") x = health_data["Average_Pulse"] y health_ data["Calorie_Burnage"] slope_intercept = np.polyfit(x,y,1) %23 print(slope_intercept)
Expert Solution
steps

Step by step

Solved in 4 steps with 2 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY