This function tabulates the values in the array and returns a table of counts.

value_counts(x)

Arguments

x

Array or ChunkedArray

Value

A StructArray containing "values" (same type as x) and "counts" Int64.