apply_sum(), apply_avg(), etc. methods not working, ignore GROUP BY, etc.

Issue #876 resolved
Mike Bayer repo owner created an issue

the aggregate methods behave terribly right now and need updated test coverage, which takes into account criterion like GROUP BY, HAVING, etc. Additionally the way to get at aggregate results should be clarified. its possible that we should just stick with sum(), avg() and not really bother with apply_XXX since its not very clear that one needs to call one() to get results.

Comments (4)

  1. jek

    apply_* are gone in query_columns

    Maybe the pattern for .min/.max/.etc in the 0.5 line would be a scalar variant of values():

    I don't think we always want to be playing catchup with the zillions of aggregate functions... `query(Node).stddev_pop(col)`...
    
  2. Mike Bayer reporter

    apply_XXX is gone in 0.5, and func.XXX() whatever can be used with values() as well as query(XXX). group_by is applicable when you're using Query in a column-based fashion.

  3. Log in to comment