joinery
joinery copied to clipboard
GroupBy on a DataFrame based on a list and then get the size of a selected column for each Group
Example : res['NonNullCount'] = res.groupby(sortOrder)['column'].transform(lambda x: x.count()).astype(int) The above we can do in pandas. How can we do it in Joinery?
groupBy then count will get you the counts. Then I think you can get the desired result by dropping any extra columns.