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

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.

主站蜘蛛池模板: 罗城| 古交市| 临洮县| 镇平县| 台东县| 郓城县| 屯留县| 象州县| 泰州市| 深泽县| 麻江县| 绵阳市| 庄浪县| 鄯善县| 藁城市| 务川| 宝山区| 明溪县| 伊通| 安吉县| 涞水县| 凤阳县| 泾阳县| 堆龙德庆县| 临泽县| 枣阳市| 建昌县| 开封县| 哈巴河县| 屏山县| 杭锦后旗| 大城县| 松滋市| 砀山县| 新乡县| 庄河市| 介休市| 建阳市| 区。| 滨州市| 荆门市|