# getColumnByIndex-按索引获取列
调用getColumnByIndex函数通过当前增强数据表实例按列索引获取行列实例。
最小支持版本:5.6.0
# 接口说明
已构建DataFrame增强型数据表对象dataframe,详情请参见fromObject (opens new window)。
# 语法
<DataFrame object>.getColumnByIndex(<index>)
1
<DataFrame object>.按索引获取列(<index>)
1
# 函数类型
实例函数
# 请求参数
参数名称 | 类型 | 是否必选 | 默认值 | 示例值 | 描述 |
---|---|---|---|---|---|
index | Cube.Lang.Number | 是 | 无 | 1 | 列索引。 |
# 返回参数
参数名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
Result | Cube.System.Series | Cube.System.Series | 获取到的行列实例。 |
# 请求示例
DataFrame.getColumnByIndex(1)
1
最近更新时间: {
"value": "2023-09-12",
"effect": true
}