pandagg.utils module¶
-
class
pandagg.utils.
DSLMixin
[source]¶ Bases:
object
Base class for all DSL objects - queries, filters, aggregations etc. Wraps a dictionary representing the object’s json.
-
class
pandagg.utils.
DslMeta
(name: str, bases: Tuple, attrs: Dict[KT, VT])[source]¶ Bases:
type
Base Metaclass for DslBase subclasses that builds a registry of all classes for given DslBase subclass (== all the query types for the Query subclass of DslBase).
Types will be: ‘agg’, ‘query’, ‘field’
Each of those types will hold a _classes dictionary pointing to all classes of same type.
-
KEY
= ''¶
-
-
pandagg.utils.
equal_queries
(d1: Any, d2: Any) → bool[source]¶ Compares if two queries are equivalent (do not consider nested list orders).