describe
Returns DataFrame
with general statistics for all ValueColumns
.
describe [ columns ]
ColumnGroup
and FrameColumns
are traversed recursively down to ValueColumns
.
Collected statistics:
name
— column namepath
— path to the column (for hierarchicalDataFrame
)type
— type of valuescount
— number of rowsunique
— number of unique valuesnulls
— number ofnull
valuestop
— the most common notnull
valuefreq
—top
value frequencymean
— mean value (for numeric columns)std
— standard deviation (for numeric columns)min
— minimal value (for comparable columns)median
— median value (for comparable columns)max
— maximum value (for comparable columns)
df.describe()
To describe only specific columns, pass them as an argument:
df.describe { age and name.allCols() }
val age by column<Int>()
val name by columnGroup()
df.describe { age and name.allCols() }
df.describe { "age" and "name".allCols() }
Last modified: 27 September 2024