Applying Custom Functions to Groupby Objects in Pandas

Sean Turner
2 min readAug 13, 2017

With the end of week three, I am already a quarter of the way through the General Assembly Data Science Immersive bootcamp. This week, the cohort again covered a combination of statistics (t-tests, chi-squared tests of independence, Cohen’s d, and more), as well as more pandas and SQL.

Over this past week, I encountered a tricky problem. A dataframe had a column named…

--

--