[//]: # (title: values) Return [`Sequence`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.sequences/-sequence/) of values from one or several columns of [`DataFrame`](DataFrame.md). ``` values(byRows: Boolean = false) [ { columns } ]: Sequence ``` See [column selectors](ColumnSelectors.md) for how to select the columns for this operation. **Parameters:** * `columns` (optional) — subset of columns for values extraction * `byRows: Boolean = false` — if `true`, data is traversed by rows, not by columns ```kotlin df.values() df.values(byRows = true) df.values { age and weight } ``` ## values in aggregation In [`groupBy`](groupBy.md#aggregation) and [`pivot`](pivot.md#aggregation) aggregations `values` function yields list of column values for every aggregated data group. ```kotlin df.groupBy { A }.values { B } df.pivot { A }.values { B } df.pivot { A }.groupBy { B }.values { C and D } ```