By the end, you'll know so much about
You'll want to say "Bazinga!"
class InitialPaymentMetric(FieldMetric):
model = Quote
identifier = 'initial_payment'
field = 'inipmt'
ListAggregationMetric
CountMetric
SeriesMetric
Math metrics
+ - * /
class QuoteCount10X(DependencyMetric):
identifier = '10x'
dependencies = [QuoteCountMetric]
def calculate(self, df):
return df[QuoteCountMetric.identifier] * 10
settings.py
METRICS_APPS = ( 'webapp.apps.energy', 'webapp.apps.ops', 'webapp.apps.solar', 'webapp.apps.solar.product', 'webapp.apps.solar.system', 'webapp.apps.user' )
build_dataframe(queryset, [metric])
build_single(object, [metric])
coming soon metric_value(object, metric)