データサイエンスチュートリアル

今日、データは世界を支配しています。これにより、データサイエンティストに対する大きな需要が生まれました。

データサイエンティストは、企業がデータ主導の意思決定を行い、ビジネスを改善するのを支援します。

今すぐデータサイエンスの学習を開始»

例による学習

「TryitYourself」エディターを使用すると、Pythonコードを編集して結果を表示できます。

import pandas as pd
import matplotlib.pyplot as plt
from scipy import stats

full_health_data = pd.read_csv("data.csv", header=0, sep=",")

x = full_health_data["Average_Pulse"]
y = full_health_data["Calorie_Burnage"]

slope, intercept, r, p, std_err = stats.linregress(x, y)

def myfunc(x):
 return slope * x + intercept

mymodel = list(map(myfunc, x))

plt.scatter(x, y)
plt.plot(x, mymodel)
plt.ylim(ymin=0, ymax=2000)
plt.xlim(xmin=0, xmax=200)
plt.xlabel("Average_Pulse")
plt.ylabel ("Calorie_Burnage")
plt.show()

[自分で試す]ボタンをクリックして、どのように機能するかを確認してください。


Pythonをダウンロード

Pythonの公式WebサイトからPythonをダウンロードします: https ://python.org