1

From answers to this question, there are named functions for .agg that are optimized to perform much faster than the equivalent numpy or custom lambda function.

However, I can't find a comprehensive list of these--for example, I only learned that "nunique" exists from quora.

In the documentation, these are called Cython optimized functions.

Andrew Yeh
  • 23
  • 2
  • Check here: https://www.shanelynn.ie/summarising-aggregation-and-grouping-data-in-python-pandas/ – NYC Coder Jun 15 '20 at 22:11
  • I do see nunique as an option, but not really a table of all the aggregate functions. Since the string versions are so much faster, it'd be good to have a list of all available ones so we can use that one instead of the lambda versions. – Andrew Yeh Jun 16 '20 at 14:56

0 Answers0