Ted Petrou
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.

--

--

Ted Petrou
Ted Petrou

Written by Ted Petrou

Author of Master Data Analysis with Python and Founder of Dunder Data

No responses yet