get
Cols
Creates a subset of columns (ColumnSet) from this.
You can use either a ColumnFilter, or any of the vararg overloads for any Access APIs. The function can be both typed and untyped (in case you're supplying a column name, -path, or index (range)).
This function operates solely on columns at the top-level.
Aside from calling cols directly, you can also use the operator in most cases.get
For more information: See cols on the documentation website.
Check out: Grammar
For example:
df.remove{ cols{ it.hasNulls() } }
df.select{ myGroupCol.cols(columnA, columnB) }
df.select{ colsOf<String>()[1, 3, 5]}
Examples for this overload:
// although these can be shortened to just the colsOf<>{ }call
df.select{ colsOf<String>().cols{ "e" init.name() } }
df.select{ colsOf<String>()[{ it.any{ it == "Alice" } }]}
// identity call, same as all()
df.select{ colsOf<String>().cols() }
Filter vs. Cols:
If used with a predicate, cols {} functions exactly like . This is intentional, however; it is recommended to use filter {}filter {} on ColumnSets and cols {} on the rest.
Return
A ColumnSet containing the columns that match the given predicate.
Parameters
A ColumnFilter function that takes a ColumnReference and returns a Boolean.
See also
Cols
Creates a subset of columns (ColumnSet) from this.
You can use either a ColumnFilter, or any of the vararg overloads for any Access APIs. The function can be both typed and untyped (in case you're supplying a column name, -path, or index (range)).
This function operates solely on columns at the top-level.
Aside from calling cols directly, you can also use the operator in most cases.get
For more information: See cols on the documentation website.
Check out: Grammar
For example:
df.remove{ cols{ it.hasNulls() } }
df.select{ myGroupCol.cols(columnA, columnB) }
df.select{ colsOf<String>()[1, 3, 5]}
Examples for this overload:
df.select{ cols{ "e" init.name() } }
df.select{ this[{ it.any{ it == "Alice" } }]}
// same as all()
Filter vs. Cols:
If used with a predicate, cols {} functions exactly like . This is intentional, however; it is recommended to use filter {}filter {} on ColumnSets and cols {} on the rest.
Return
A ColumnSet containing the columns that match the given predicate.
Parameters
A ColumnFilter function that takes a ColumnReference and returns a Boolean.
See also
Cols
Creates a subset of columns (ColumnSet) from this.
You can use either a ColumnFilter, or any of the vararg overloads for any Access APIs. The function can be both typed and untyped (in case you're supplying a column name, -path, or index (range)).
This function operates solely on columns at the top-level.
Aside from calling cols directly, you can also use the operator in most cases.get
For more information: See cols on the documentation website.
Check out: Grammar
For example:
df.remove{ cols{ it.hasNulls() } }
df.select{ myGroupCol.cols(columnA, columnB) }
df.select{ colsOf<String>()[1, 3, 5]}
Examples for this overload:
df.select{ myColumnGroup.cols{ "e" init.name() } }
// same as allCols()
df.select{ myColumnGroup.cols() }
df.select{ myColumnGroup[{ ... }]}
Filter vs. Cols:
If used with a predicate, cols {} functions exactly like . This is intentional, however; it is recommended to use filter {}filter {} on ColumnSets and cols {} on the rest.
Return
A ColumnSet containing the columns that match the given predicate.
Parameters
A ColumnFilter function that takes a ColumnReference and returns a Boolean.
See also
Cols
Creates a subset of columns (ColumnSet) from this.
You can use either a ColumnFilter, or any of the vararg overloads for any Access APIs. The function can be both typed and untyped (in case you're supplying a column name, -path, or index (range)).
This function operates solely on columns at the top-level.
Aside from calling cols directly, you can also use the operator in most cases.get
For more information: See cols on the documentation website.
Check out: Grammar
For example:
df.remove{ cols{ it.hasNulls() } }
df.select{ myGroupCol.cols(columnA, columnB) }
df.select{ colsOf<String>()[1, 3, 5]}
Examples for this overload:
df.select{ "myGroupCol".cols{ "e" init.name() } }
df.select{ "myGroupCol"[{ it.any{ it == "Alice" } }]}
// same as allCols()
df.select{ "myGroupCol".cols() }
Filter vs. Cols:
If used with a predicate, cols {} functions exactly like . This is intentional, however; it is recommended to use filter {}filter {} on ColumnSets and cols {} on the rest.
Return
A ColumnSet containing the columns that match the given predicate.
Parameters
A ColumnFilter function that takes a ColumnReference and returns a Boolean.
See also
Cols
Creates a subset of columns (ColumnSet) from this.
You can use either a ColumnFilter, or any of the vararg overloads for any Access APIs. The function can be both typed and untyped (in case you're supplying a column name, -path, or index (range)).
This function operates solely on columns at the top-level.
Aside from calling cols directly, you can also use the operator in most cases.get
For more information: See cols on the documentation website.
Check out: Grammar
For example:
df.remove{ cols{ it.hasNulls() } }
df.select{ myGroupCol.cols(columnA, columnB) }
df.select{ colsOf<String>()[1, 3, 5]}
Examples for this overload:
df.select{ "pathTo"["myGroupCol"].cols{ "e" init.name() } }
df.select{ "pathTo"["myGroupCol"][{ it.any{ it == "Alice" } }]}
df.select{ "pathTo"["myGroupCol"].cols() } // identity call, same as allCols
Filter vs. Cols:
If used with a predicate, cols {} functions exactly like . This is intentional, however; it is recommended to use filter {}filter {} on ColumnSets and cols {} on the rest.
Return
A ColumnSet containing the columns that match the given predicate.
Parameters
A ColumnFilter function that takes a ColumnReference and returns a Boolean.
See also
Cols
Creates a subset of columns (ColumnSet) from this.
You can use either a ColumnFilter, or any of the vararg overloads for any Access APIs. The function can be both typed and untyped (in case you're supplying a column name, -path, or index (range)).
This function operates solely on columns at the top-level.
Aside from calling cols directly, you can also use the operator in most cases.get
For more information: See cols on the documentation website.
Check out: Grammar
For example:
df.remove{ cols{ it.hasNulls() } }
df.select{ myGroupCol.cols(columnA, columnB) }
df.select{ colsOf<String>()[1, 3, 5]}
Examples for this overload:
df.select{ cols(colGroup.columnA, columnB) }
df.select{ this[colGroup.columnA, columnB]}
Return
A ColumnSet containing the columns that firstCol and otherCols point to.
Parameters
A ColumnReference that points to a relative column.
Optional additional ColumnReferences that point to relative columns.
Throws
if any of the given ColumnReferences point to a column that doesn't exist.
Cols
Creates a subset of columns (ColumnSet) from this.
You can use either a ColumnFilter, or any of the vararg overloads for any Access APIs. The function can be both typed and untyped (in case you're supplying a column name, -path, or index (range)).
This function operates solely on columns at the top-level.
Aside from calling cols directly, you can also use the operator in most cases.get
For more information: See cols on the documentation website.
Check out: Grammar
For example:
df.remove{ cols{ it.hasNulls() } }
df.select{ myGroupCol.cols(columnA, columnB) }
df.select{ colsOf<String>()[1, 3, 5]}
Examples for this overload:
df.select{ myColumnGroup.cols(columnA, columnB) }
df.select{ myColumnGroup[columnA, columnB]}
Return
A ColumnSet containing the columns that firstCol and otherCols point to.
Parameters
A ColumnReference that points to a relative column.
Optional additional ColumnReferences that point to relative columns.
Throws
if any of the given ColumnReferences point to a column that doesn't exist.
Cols
Creates a subset of columns (ColumnSet) from this.
You can use either a ColumnFilter, or any of the vararg overloads for any Access APIs. The function can be both typed and untyped (in case you're supplying a column name, -path, or index (range)).
This function operates solely on columns at the top-level.
Aside from calling cols directly, you can also use the operator in most cases.get
For more information: See cols on the documentation website.
Check out: Grammar
For example:
df.remove{ cols{ it.hasNulls() } }
df.select{ myGroupCol.cols(columnA, columnB) }
df.select{ colsOf<String>()[1, 3, 5]}
Examples for this overload:
df.select{ "myColumnGroup".cols(columnA, columnB) }
df.select{ "myColumnGroup"[columnA, columnB]}
Return
A ColumnSet containing the columns that firstCol and otherCols point to.
Parameters
A ColumnReference that points to a relative column.
Optional additional ColumnReferences that point to relative columns.
Throws
if any of the given ColumnReferences point to a column that doesn't exist.
Cols
Creates a subset of columns (ColumnSet) from this.
You can use either a ColumnFilter, or any of the vararg overloads for any Access APIs. The function can be both typed and untyped (in case you're supplying a column name, -path, or index (range)).
This function operates solely on columns at the top-level.
Aside from calling cols directly, you can also use the operator in most cases.get
For more information: See cols on the documentation website.
Check out: Grammar
For example:
df.remove{ cols{ it.hasNulls() } }
df.select{ myGroupCol.cols(columnA, columnB) }
df.select{ colsOf<String>()[1, 3, 5]}
Examples for this overload:
df.select{ "pathTo"["columnGroup"].cols(columnA, columnB) }
df.select{ "pathTo"["columnGroup"].cols("pathTo"["colA"], "pathTo"["colB"]) }
df.select{ "pathTo"["columnGroup"][columnA, columnB]}
Return
A ColumnSet containing the columns that firstCol and otherCols point to.
Parameters
A ColumnReference that points to a relative column.
Optional additional ColumnReferences that point to relative columns.
Throws
if any of the given ColumnReferences point to a column that doesn't exist.
Cols
Creates a subset of columns (ColumnSet) from this.
You can use either a ColumnFilter, or any of the vararg overloads for any Access APIs. The function can be both typed and untyped (in case you're supplying a column name, -path, or index (range)).
This function operates solely on columns at the top-level.
Aside from calling cols directly, you can also use the operator in most cases.get
For more information: See cols on the documentation website.
Check out: Grammar
For example:
df.remove{ cols{ it.hasNulls() } }
df.select{ myGroupCol.cols(columnA, columnB) }
df.select{ colsOf<String>()[1, 3, 5]}
Examples for this overload:
df.select{ cols("columnA", "columnB") }
df.select{ cols<String>("columnA", "columnB") }
df.select{ this["columnA", "columnB"]}
Return
A ColumnSet containing the columns that firstCol and otherCols point to.
Parameters
A String that points to a relative column.
Optional additional Strings that point to relative columns.
Throws
if any of the given ColumnReferences point to a column that doesn't exist.
Cols
Creates a subset of columns (ColumnSet) from this.
You can use either a ColumnFilter, or any of the vararg overloads for any Access APIs. The function can be both typed and untyped (in case you're supplying a column name, -path, or index (range)).
This function operates solely on columns at the top-level.
Aside from calling cols directly, you can also use the operator in most cases.get
For more information: See cols on the documentation website.
Check out: Grammar
For example:
df.remove{ cols{ it.hasNulls() } }
df.select{ myGroupCol.cols(columnA, columnB) }
df.select{ colsOf<String>()[1, 3, 5]}
Examples for this overload:
df.select{ myColumnGroup.cols("columnA", "columnB") }
df.select{ myColumnGroup["columnA", "columnB"]}
Return
A ColumnSet containing the columns that firstCol and otherCols point to.
Parameters
A String that points to a relative column.
Optional additional Strings that point to relative columns.
Throws
if any of the given ColumnReferences point to a column that doesn't exist.
Cols
Creates a subset of columns (ColumnSet) from this.
You can use either a ColumnFilter, or any of the vararg overloads for any Access APIs. The function can be both typed and untyped (in case you're supplying a column name, -path, or index (range)).
This function operates solely on columns at the top-level.
Aside from calling cols directly, you can also use the operator in most cases.get
For more information: See cols on the documentation website.
Check out: Grammar
For example:
df.remove{ cols{ it.hasNulls() } }
df.select{ myGroupCol.cols(columnA, columnB) }
df.select{ colsOf<String>()[1, 3, 5]}
Examples for this overload:
df.select{ "columnGroup".cols("columnA", "columnB") }
df.select{ "columnGroup"["columnA", "columnB"]}
Return
A ColumnSet containing the columns that firstCol and otherCols point to.
Parameters
A String that points to a relative column.
Optional additional Strings that point to relative columns.
Throws
if any of the given ColumnReferences point to a column that doesn't exist.
Cols
Creates a subset of columns (ColumnSet) from this.
You can use either a ColumnFilter, or any of the vararg overloads for any Access APIs. The function can be both typed and untyped (in case you're supplying a column name, -path, or index (range)).
This function operates solely on columns at the top-level.
Aside from calling cols directly, you can also use the operator in most cases.get
For more information: See cols on the documentation website.
Check out: Grammar
For example:
df.remove{ cols{ it.hasNulls() } }
df.select{ myGroupCol.cols(columnA, columnB) }
df.select{ colsOf<String>()[1, 3, 5]}
Examples for this overload:
df.select{ "pathTo"["columnGroup"].cols("columnA", "columnB") }
df.select{ "pathTo"["columnGroup"]["columnA", "columnB"]}
Return
A ColumnSet containing the columns that firstCol and otherCols point to.
Parameters
A String that points to a relative column.
Optional additional Strings that point to relative columns.
Throws
if any of the given ColumnReferences point to a column that doesn't exist.
Cols
Creates a subset of columns (ColumnSet) from this.
You can use either a ColumnFilter, or any of the vararg overloads for any Access APIs. The function can be both typed and untyped (in case you're supplying a column name, -path, or index (range)).
This function operates solely on columns at the top-level.
Aside from calling cols directly, you can also use the operator in most cases.get
For more information: See cols on the documentation website.
Check out: Grammar
For example:
df.remove{ cols{ it.hasNulls() } }
df.select{ myGroupCol.cols(columnA, columnB) }
df.select{ colsOf<String>()[1, 3, 5]}
Examples for this overload:
df.select{ cols("pathTo"["colA"], "pathTo"["colB"])) }
df.select{ cols<String>("pathTo"["colA"], "pathTo"["colB"])) }
df.select{ this["pathTo"["colA"], "pathTo"["colB"])]}
Return
A ColumnSet containing the columns that firstCol and otherCols point to.
Parameters
A String that points to a relative column.
Optional additional Strings that point to relative columns.
Throws
if any of the given ColumnReferences point to a column that doesn't exist.
Cols
Creates a subset of columns (ColumnSet) from this.
You can use either a ColumnFilter, or any of the vararg overloads for any Access APIs. The function can be both typed and untyped (in case you're supplying a column name, -path, or index (range)).
This function operates solely on columns at the top-level.
Aside from calling cols directly, you can also use the operator in most cases.get
For more information: See cols on the documentation website.
Check out: Grammar
For example:
df.remove{ cols{ it.hasNulls() } }
df.select{ myGroupCol.cols(columnA, columnB) }
df.select{ colsOf<String>()[1, 3, 5]}
Examples for this overload:
df.select{ myColumnGroup.cols("pathTo"["colA"], "pathTo"["colB"])) }
df.select{ myColumnGroup.cols<String>("pathTo"["colA"], "pathTo"["colB"])) }
df.select{ myColumnGroup["pathTo"["colA"], "pathTo"["colB"])]}
Return
A ColumnSet containing the columns that firstCol and otherCols point to.
Parameters
A ColumnPath that points to a relative column.
Optional additional ColumnPaths that point to relative columns.
Throws
if any of the given ColumnReferences point to a column that doesn't exist.
Cols
Creates a subset of columns (ColumnSet) from this.
You can use either a ColumnFilter, or any of the vararg overloads for any Access APIs. The function can be both typed and untyped (in case you're supplying a column name, -path, or index (range)).
This function operates solely on columns at the top-level.
Aside from calling cols directly, you can also use the operator in most cases.get
For more information: See cols on the documentation website.
Check out: Grammar
For example:
df.remove{ cols{ it.hasNulls() } }
df.select{ myGroupCol.cols(columnA, columnB) }
df.select{ colsOf<String>()[1, 3, 5]}
Examples for this overload:
df.select{ "columnGroup".cols("pathTo"["colA"], "pathTo"["colB"])) }
df.select{ "columnGroup".cols<String>("pathTo"["colA"], "pathTo"["colB"])) }
df.select{ "columnGroup"[""pathTo"["colA"], "pathTo"["colB"])]}
Return
A ColumnSet containing the columns that firstCol and otherCols point to.
Parameters
A ColumnPath that points to a relative column.
Optional additional ColumnPaths that point to relative columns.
Throws
if any of the given ColumnReferences point to a column that doesn't exist.
Cols
Creates a subset of columns (ColumnSet) from this.
You can use either a ColumnFilter, or any of the vararg overloads for any Access APIs. The function can be both typed and untyped (in case you're supplying a column name, -path, or index (range)).
This function operates solely on columns at the top-level.
Aside from calling cols directly, you can also use the operator in most cases.get
For more information: See cols on the documentation website.
Check out: Grammar
For example:
df.remove{ cols{ it.hasNulls() } }
df.select{ myGroupCol.cols(columnA, columnB) }
df.select{ colsOf<String>()[1, 3, 5]}
Examples for this overload:
df.select{ "pathTo"["columnGroup"].cols("pathTo"["colA"], "pathTo"["colB"])) }
df.select{ "pathTo"["columnGroup"].cols<String>("pathTo"["colA"], "pathTo"["colB"])) }
df.select{ "pathTo"["columnGroup"]["pathTo"["colA"], "pathTo"["colB"])]}
Return
A ColumnSet containing the columns that firstCol and otherCols point to.
Parameters
A ColumnPath that points to a relative column.
Optional additional ColumnPaths that point to relative columns.
Throws
if any of the given ColumnReferences point to a column that doesn't exist.
Cols: Columns by Indices
Retrieves one or multiple columns from this in the form of a ColumnSet by their indices. If any of the indices are out of bounds, an IndexOutOfBoundsException is thrown.
For more information: See cols on the documentation website.
Check out: Grammar
For example:
df.select{ colsOf<Int>()[5, 1, 2]}
df.select{ "myColumnGroup".cols(0, 2) }
Examples for this overload:
df.select{ colsOf<Int>().cols(1, 3) }
Return
A ColumnSet containing the columns found at the given indices.
Parameters
The index of the first column to retrieve.
The other indices of the columns to retrieve.
Throws
If any index is out of bounds.
Cols: Columns by Index Range
Retrieves multiple columns from this in the form of a ColumnSet by a range of indices. If any of the indices in the range are out of bounds, an IndexOutOfBoundsException is thrown.
For more information: See cols on the documentation website.
Check out: Grammar
For example:
df.select{ colsOf<Int>()[1..5]}
df.select{ "myColGroup".cols(0..2) }
Examples for this overload:
df.select{ colsOf<Int>().cols(1..3) }
Return
A ColumnSet containing the columns found at the given indices.
Parameters
The range of indices to retrieve in the form of an IntRange.
Throws
Deprecated
It's recommended to migrate to the String or Extension Properties Access API https://kotlin.github.io/dataframe/apilevels.html
Cols
Creates a subset of columns (ColumnSet) from this.
You can use either a ColumnFilter, or any of the vararg overloads for any Access APIs. The function can be both typed and untyped (in case you're supplying a column name, -path, or index (range)).
This function operates solely on columns at the top-level.
Aside from calling cols directly, you can also use the operator in most cases.get
For more information: See cols on the documentation website.
Check out: Grammar
For example:
df.remove{ cols{ it.hasNulls() } }
df.select{ myGroupCol.cols(columnA, columnB) }
df.select{ colsOf<String>()[1, 3, 5]}
Examples for this overload:
df.select{ Type::columnGroup.cols{ "e" init.name() } }
df.select{ Type::columnGroup[{ it.any{ it == "Alice" } }]}
// same as allCols()
df.select{ Type::columnGroup.cols() }
Filter vs. Cols:
If used with a predicate, cols {} functions exactly like . This is intentional, however; it is recommended to use filter {}filter {} on ColumnSets and cols {} on the rest.
Return
A ColumnSet containing the columns that match the given predicate.
Parameters
A ColumnFilter function that takes a ColumnReference and returns a Boolean.
See also
Deprecated
It's recommended to migrate to the String or Extension Properties Access API https://kotlin.github.io/dataframe/apilevels.html
Cols
Creates a subset of columns (ColumnSet) from this.
You can use either a ColumnFilter, or any of the vararg overloads for any Access APIs. The function can be both typed and untyped (in case you're supplying a column name, -path, or index (range)).
This function operates solely on columns at the top-level.
Aside from calling cols directly, you can also use the operator in most cases.get
For more information: See cols on the documentation website.
Check out: Grammar
For example:
df.remove{ cols{ it.hasNulls() } }
df.select{ myGroupCol.cols(columnA, columnB) }
df.select{ colsOf<String>()[1, 3, 5]}
Examples for this overload:
df.select{ Type::myColumnGroup.cols(columnA, columnB) }
df.select{ DataSchemaType::myColumnGroup["pathTo"["colA"], "pathTo"["colB"]]}
Return
A ColumnSet containing the columns that firstCol and otherCols point to.
Parameters
A ColumnReference that points to a relative column.
Optional additional ColumnReferences that point to relative columns.
Throws
if any of the given ColumnReferences point to a column that doesn't exist.
Deprecated
It's recommended to migrate to the String or Extension Properties Access API https://kotlin.github.io/dataframe/apilevels.html
Cols
Creates a subset of columns (ColumnSet) from this.
You can use either a ColumnFilter, or any of the vararg overloads for any Access APIs. The function can be both typed and untyped (in case you're supplying a column name, -path, or index (range)).
This function operates solely on columns at the top-level.
Aside from calling cols directly, you can also use the operator in most cases.get
For more information: See cols on the documentation website.
Check out: Grammar
For example:
df.remove{ cols{ it.hasNulls() } }
df.select{ myGroupCol.cols(columnA, columnB) }
df.select{ colsOf<String>()[1, 3, 5]}
Examples for this overload:
df.select{ Type::myColumnGroup.cols("columnA", "columnB") }
df.select{ DataSchemaType::myColumnGroup["columnA", "columnB"]}
Return
A ColumnSet containing the columns that firstCol and otherCols point to.
Parameters
A String that points to a relative column.
Optional additional Strings that point to relative columns.
Throws
if any of the given ColumnReferences point to a column that doesn't exist.
Deprecated
It's recommended to migrate to the String or Extension Properties Access API https://kotlin.github.io/dataframe/apilevels.html
Cols
Creates a subset of columns (ColumnSet) from this.
You can use either a ColumnFilter, or any of the vararg overloads for any Access APIs. The function can be both typed and untyped (in case you're supplying a column name, -path, or index (range)).
This function operates solely on columns at the top-level.
Aside from calling cols directly, you can also use the operator in most cases.get
For more information: See cols on the documentation website.
Check out: Grammar
For example:
df.remove{ cols{ it.hasNulls() } }
df.select{ myGroupCol.cols(columnA, columnB) }
df.select{ colsOf<String>()[1, 3, 5]}
Examples for this overload:
df.select{ Type::myColumnGroup.cols("pathTo"["colA"], "pathTo"["colB"])) }
df.select{ Type::myColumnGroup.cols<String>("pathTo"["colA"], "pathTo"["colB"])) }
df.select{ DataSchemaType::myColumnGroup["columnA", "columnB"]}
Return
A ColumnSet containing the columns that firstCol and otherCols point to.
Parameters
A ColumnPath that points to a relative column.
Optional additional ColumnPaths that point to relative columns.
Throws
if any of the given ColumnReferences point to a column that doesn't exist.
Deprecated
It's recommended to migrate to the String or Extension Properties Access API https://kotlin.github.io/dataframe/apilevels.html
Cols
Creates a subset of columns (ColumnSet) from this.
You can use either a ColumnFilter, or any of the vararg overloads for any Access APIs. The function can be both typed and untyped (in case you're supplying a column name, -path, or index (range)).
This function operates solely on columns at the top-level.
Aside from calling cols directly, you can also use the operator in most cases.get
For more information: See cols on the documentation website.
Check out: Grammar
For example:
df.remove{ cols{ it.hasNulls() } }
df.select{ myGroupCol.cols(columnA, columnB) }
df.select{ colsOf<String>()[1, 3, 5]}
Examples for this overload:
df.select{ cols(Type::colA, Type::colB) }
df.select{ this[Type::colA, Type::colB]}
Return
A ColumnSet containing the columns that firstCol and otherCols point to.
Parameters
A KProperty that points to a relative column.
Optional additional KPropertys that point to relative columns.
Throws
if any of the given ColumnReferences point to a column that doesn't exist.
Deprecated
It's recommended to migrate to the String or Extension Properties Access API https://kotlin.github.io/dataframe/apilevels.html
Cols
Creates a subset of columns (ColumnSet) from this.
You can use either a ColumnFilter, or any of the vararg overloads for any Access APIs. The function can be both typed and untyped (in case you're supplying a column name, -path, or index (range)).
This function operates solely on columns at the top-level.
Aside from calling cols directly, you can also use the operator in most cases.get
For more information: See cols on the documentation website.
Check out: Grammar
For example:
df.remove{ cols{ it.hasNulls() } }
df.select{ myGroupCol.cols(columnA, columnB) }
df.select{ colsOf<String>()[1, 3, 5]}
Examples for this overload:
df.select{ myColumnGroup.cols(Type::colA, Type::colB) }
df.select{ myColumnGroup[Type::colA, Type::colB]}
Return
A ColumnSet containing the columns that firstCol and otherCols point to.
Parameters
A KProperty that points to a relative column.
Optional additional KPropertys that point to relative columns.
Throws
if any of the given ColumnReferences point to a column that doesn't exist.
Deprecated
It's recommended to migrate to the String or Extension Properties Access API https://kotlin.github.io/dataframe/apilevels.html
Cols
Creates a subset of columns (ColumnSet) from this.
You can use either a ColumnFilter, or any of the vararg overloads for any Access APIs. The function can be both typed and untyped (in case you're supplying a column name, -path, or index (range)).
This function operates solely on columns at the top-level.
Aside from calling cols directly, you can also use the operator in most cases.get
For more information: See cols on the documentation website.
Check out: Grammar
For example:
df.remove{ cols{ it.hasNulls() } }
df.select{ myGroupCol.cols(columnA, columnB) }
df.select{ colsOf<String>()[1, 3, 5]}
Examples for this overload:
df.select{ "myColumnGroup".cols(Type::colA, Type::colB) }
df.select{ "myColumnGroup"[Type::colA, Type::colB]}
Return
A ColumnSet containing the columns that firstCol and otherCols point to.
Parameters
A KProperty that points to a relative column.
Optional additional KPropertys that point to relative columns.
Throws
if any of the given ColumnReferences point to a column that doesn't exist.
Deprecated
It's recommended to migrate to the String or Extension Properties Access API https://kotlin.github.io/dataframe/apilevels.html
Cols
Creates a subset of columns (ColumnSet) from this.
You can use either a ColumnFilter, or any of the vararg overloads for any Access APIs. The function can be both typed and untyped (in case you're supplying a column name, -path, or index (range)).
This function operates solely on columns at the top-level.
Aside from calling cols directly, you can also use the operator in most cases.get
For more information: See cols on the documentation website.
Check out: Grammar
For example:
df.remove{ cols{ it.hasNulls() } }
df.select{ myGroupCol.cols(columnA, columnB) }
df.select{ colsOf<String>()[1, 3, 5]}
Examples for this overload:
df.select{ Type::myColumnGroup.cols(Type::colA, Type::colB) }
df.select{ Type::myColumnGroup[Type::colA, Type::colB]}
Return
A ColumnSet containing the columns that firstCol and otherCols point to.
Parameters
A KProperty that points to a relative column.
Optional additional KPropertys that point to relative columns.
Throws
if any of the given ColumnReferences point to a column that doesn't exist.
Deprecated
It's recommended to migrate to the String or Extension Properties Access API https://kotlin.github.io/dataframe/apilevels.html
Cols
Creates a subset of columns (ColumnSet) from this.
You can use either a ColumnFilter, or any of the vararg overloads for any Access APIs. The function can be both typed and untyped (in case you're supplying a column name, -path, or index (range)).
This function operates solely on columns at the top-level.
Aside from calling cols directly, you can also use the operator in most cases.get
For more information: See cols on the documentation website.
Check out: Grammar
For example:
df.remove{ cols{ it.hasNulls() } }
df.select{ myGroupCol.cols(columnA, columnB) }
df.select{ colsOf<String>()[1, 3, 5]}
Examples for this overload:
df.select{ "pathTo"["columnGroup"].cols(Type::colA, Type::colB) }
df.select{ "pathTo"["columnGroup"][Type::colA, Type::colB]}
Return
A ColumnSet containing the columns that firstCol and otherCols point to.
Parameters
A KProperty that points to a relative column.
Optional additional KPropertys that point to relative columns.
Throws
if any of the given ColumnReferences point to a column that doesn't exist.