values
Return Sequence
of values from one or several columns of DataFrame
.
values(byRows: Boolean = false)
[ columns ]: Sequence<C>
Parameters:
columns
(optional) — subset of columns for values extractionbyRows: Boolean = false
— iftrue
, data is traversed by rows, not by columns
df.values()
df.values(byRows = true)
df.values { age and weight }
values in aggregation
In groupBy
and pivot
aggregations values
function yields list of column values for every aggregated data group.
df.groupBy { A }.values { B }
df.pivot { A }.values { B }
df.pivot { A }.groupBy { B }.values { C and D }
Last modified: 27 September 2024