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

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.

主站蜘蛛池模板: 视频| 南充市| 阿拉善左旗| 三穗县| 和静县| 永修县| 松原市| 景谷| 论坛| 安塞县| 桃源县| 宝清县| 新疆| 平远县| 富锦市| 黑山县| 堆龙德庆县| 靖西县| 焉耆| 太湖县| 隆昌县| 邮箱| 乌审旗| 永德县| 通州市| 嵩明县| 军事| 印江| 静海县| 阳城县| 郎溪县| 崇阳县| 嵩明县| 江门市| 建瓯市| 郧西县| 绵阳市| 德阳市| 屏东市| 治多县| 文山县|