The magic phrase for the google seems to be "pattern matching for python".
Have fun.
On Thu, 11 Jul 2019, 14:59 Pauli Rikula, wrote:
> The purpose of the equation should be representation of the sorting
> pipeline. Maybe the aggregate functions could be nodes on the graph which
> take list
The purpose of the equation should be representation of the sorting
pipeline. Maybe the aggregate functions could be nodes on the graph which
take list slices as input and give finer slices as output
On Thu, 11 Jul 2019, 13:53 'Felix Neutatz' via sympy, <
sympy@googlegroups.com> wrote:
> Thank
Thank you, Pauli, for the fast answer :)
I understand that by using categories, we get a grouping, e.g.
from sympy.abc import X, Y
print((C(X) * C(Y)).evaluate())
However, I do not understand how to incorporate aggregate functions, such
as Min, Max, Stddev, ...
Furthermore, I assume that I
See my category equation module. Your 'thengroupby' is the multiplication
there. The *-1 has to be done in some other way though. I have to think it
a bit. If you can find out how to manipulate those equations with sympy
automatically, tell me also.
Dear all,
I am currently trying to apply some algebraic rewrites to simplify GroupBy
statements, such as a
groupByThenMean(X,Y) = Select Mean(X) from Table GroupBY Y # in SQL
assert groupbythenmean(-X, Y) == -groupbythenmean(X, Y)
assert groupbythenstd(X, X) == 0
assert groupbythenstd(X, Y *