pg-binny (pypi): Bins your dataframe columns into the Top ≤N categories, and "Other".
Keywords: discretize|bin|Python|datascience|preprocess