Comment
Comment by gandercrews
rewritten apl version w/ lambdas and commute (vs assignment & parens):
About as short as I can make it, and while its longer than the pandas solution, the primitives are significantly more general (sqr, odd - why include these as language primitives?).