Data Science

How to Resample Data by Group In Pandas

A great tool to remove the effect of a factor

Billy Bonaros
Towards AI
Published in
3 min readApr 6, 2021

--

Sometimes when we are working on machine learning projects, there are some factors that can have a huge impact on the performance and they are not manageable or structured. A solution is to remove their effect in our data by sampling based on the factor we want to normalize.

--

--