Monthly Archives: May 2013

tapply in Python

tapply is a super convenient function in R for computing statistics on a “ragged array”. It lets you separate a dataset into groups based on a categorial variable, then compute any function you want on each group. Suppose we have … Continue reading

Posted in python | Leave a comment