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

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.

主站蜘蛛池模板: 甘洛县| 郎溪县| 庄浪县| 淳安县| 玛沁县| 垦利县| 海兴县| 墨脱县| 咸宁市| 汾西县| 拉孜县| 和平县| 南汇区| 平果县| 手机| 桂阳县| 响水县| 凤冈县| 汾西县| 扎兰屯市| 广宁县| 加查县| 五峰| 常熟市| 阿拉善盟| 北安市| 清流县| 东平县| 卢湾区| 佛学| 苗栗县| 乌拉特前旗| 郓城县| 上饶县| 辽宁省| 祁阳县| 清水河县| 北辰区| 宜川县| 漳州市| 阆中市|