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

Separating features from labels

Let's separate our features from the labels, as we will feed them into the model separately:

In []: 
features = df.loc[:,:'fluffy'] 
labels = df.label 

This horrible construction df.loc[:,:'fluffy'] tells the data frame that we want all the rows (the first column), and the columns starting from the first, finishing with 'fluffy'.

主站蜘蛛池模板: 收藏| 益阳市| 昌宁县| 石首市| 安丘市| 双牌县| 津市市| 吴江市| 乌鲁木齐市| 浦江县| 石柱| 德庆县| 濉溪县| 金塔县| 新昌县| 靖江市| 涿州市| 清涧县| 湘乡市| 翁牛特旗| 北川| 桦甸市| 宁乡县| 城固县| 安国市| 车险| 望奎县| 广平县| 泰兴市| 固镇县| 石棉县| 灵璧县| 安义县| 肇州县| 吕梁市| 常山县| 饶河县| 南京市| 张家港市| 达拉特旗| 修文县|