A KDB-X module to look at a table, whatever its source: a database, a file you loaded, or a result of a query.
q).tbl:use`kx.tbl
q).tbl.describe ([]a:1 2 0N 4;b:`x`y`x`) / per-column statistics
q).tbl.peek[trade;12] / the first rows and rows from evenly spaced placesThe module provides:
describereturns statistics of each column of a table: type, counts of values, nulls and distinct values, mean, standard deviation, quartiles, range and most frequent value. It works likedescribeof pandas and polars, with one row for each column.peekreturns rows of a table to look around in it: the first rows, then blocks of rows from evenly spaced places in the rest of it, in the order of the table.
Included in this repository is a set of github actions used to test the module APIs. They test the module with vanilla KDB-X and with qmamba.
Copyright (c) 2026 KX Systems, Inc.
Licensed under the Apache License, Version 2.0.