GroupedQueryBuilder#

from tmlt.analytics import GroupedQueryBuilder
class tmlt.analytics.GroupedQueryBuilder(source_id, query_expr, groupby_keys)#

Bases: object

A QueryBuilder that is grouped by a set of columns and can be aggregated.

__init__(source_id, query_expr, groupby_keys)#

Constructor.

Do not construct directly; use groupby().

Methods

GroupedQueryBuilder.average

Returns a Query with an average query.

GroupedQueryBuilder.count

Returns a GroupedCountQuery with a count query.

GroupedQueryBuilder.count_distinct

Returns a Query with a count_distinct query.

GroupedQueryBuilder.get_bounds

Returns an Query that gets approximate upper and lower bounds for a column.

GroupedQueryBuilder.max

Returns a Query with a quantile query requesting a maximum value.

GroupedQueryBuilder.median

Returns a Query with a quantile query requesting a median value.

GroupedQueryBuilder.min

Returns a Query with a quantile query requesting a minimum value.

GroupedQueryBuilder.quantile

Returns a Query with a quantile query.

GroupedQueryBuilder.stdev

Returns a Query with a standard deviation query.

GroupedQueryBuilder.sum

Returns a Query with a sum query.

GroupedQueryBuilder.variance

Returns a Query with a variance query.