Commands frame/top_k¶
Most or least frequent column values.
POST /v1/commands/¶
GET /v1/commands/:id¶
Request¶
Route
POST /v1/commands/
Body
name: | frame/top_k |
---|---|
arguments: | frame : Frame
column_name : unicode
k : int32
weights_column : unicode (default=None)
|
Headers
Authorization: test_api_key_1
Content-type: application/json
Description
Calculate the top (or bottom) K distinct values by count of a column. The column can be weighted. All data elements of weight <= 0 are excluded from the calculation, as are all data elements whose weight is NaN or infinite. If there are no data elements of finite weight > 0, then topK is empty.
Response¶
Status
200 OK
Body
Returns information about the command. See the Response Body for Get Command here below. It is the same.