官术网_书友最值得收藏!

Getting ready

In the following steps we will download the following packages:

To start with, import the os and pandas packages and set your working directory according to your requirements:

# import required packages
import os
import pandas as pd

# Set working directory as per your need
os.chdir(".../.../Chapter 2")
os.getcwd()

Download the Cryotherapy.csv dataset from GitHub and copy it to your working directory. Read the dataset:

df_cryotherapydata = pd.read_csv("Cryotherapy.csv")

Take a look at the data with the following code:

df_cryotherapydata.head(5)

We can see that the data has been read properly and has the Result_of_Treatment class variable. We then move on to creating models with Result_of_Treatment as the response variable.

主站蜘蛛池模板: 青龙| 武邑县| 镇巴县| 巨鹿县| 遂平县| 枣阳市| 潍坊市| 乌兰浩特市| 周宁县| 邯郸县| 塔城市| 湘潭县| 长海县| 柞水县| 汝城县| 铁岭市| 佛冈县| 密云县| 崇仁县| 平塘县| 额济纳旗| 兰州市| 涞源县| 岳阳县| 阿巴嘎旗| 绥江县| 若羌县| 新龙县| 澎湖县| 兴隆县| 崇礼县| 沙田区| 富锦市| 丰城市| 岑溪市| 鹿邑县| 常德市| 余江县| 盱眙县| 东平县| 曲阜市|