1 min readFeb 1, 2019
Well done. I thought about adding that solution as well as the method name nlargest is clear, but it still acts on each group individually. Even though it’s not a custom function it still is not performant.
Well done. I thought about adding that solution as well as the method name nlargest is clear, but it still acts on each group individually. Even though it’s not a custom function it still is not performant.
Author of Master Data Analysis with Python and Founder of Dunder Data