aggragate in pandas https://pythonforbiologists.com/when-to-use-aggregatefiltertransform-in-pandas/