Implement functions that answer "which distinct values are there, and how often?". distinct returns the sorted distinct values, value_counts returns those values with their counts, first_positions returns where each distinct value first occurs, codes turns every element into the integer index of its value among the distinct ones, mode returns the most frequent value (the smallest when several tie), and unique_in_order returns the distinct values in the order they first appear.
No results yet
Run your code to check it against the examples, or submit to run every test.