我的DataFrame中有7列,我试图将0-5和7变量分配为特征变量,但无法获取。 这是我正在尝试的代码:
feature_vars = list(data_tab.domain.variables[:5, 7]
答案 0 :(得分:0)
feature_vars = data_tab.domain.variables[:5]+ data_tab.domain.variables[7]
我认为这是您尝试做的一种似乎非常奇怪的设置方法。您所写的内容暗示您有一个名为'data_tab'
的对象,其属性为'domain'
,属性为'variables'
,属性为html,
body {
height: 100%;
margin: 0px;
}
* {
box-sizing: border-box;
}
.marketing-main-header_banner {
overflow: hidden;
background-position: 100% 100%;
position: relative;
height: 900px;
width: 1700px;
}
.marketing-main-header_banner_image {
overflow: visible;
background-image: url("https://svgshare.com/i/8GY.svg");
background-size: cover;
background-repeat: no-repeat;
background-position: 100% 100%;
position: relative;
height: 900px;
width: 2000px;
}
.nav-holder {
background-position: 100% 100%;
position: relative;
height: 900px;
width: 1700px;
width: 1700;
}
,该数组类似于对象-f.x。列表。