Skip to main content
2025 Python Packaging Survey is now live!  Take the survey now

Tools for working with pandas categoricals

Project description

forcats (in python)

This is a port of the popular R package forcats to python.

NOTE: I am in the process of moving the forcats module from machow/siuba to here. In the meantime, you can install and use it from there.

First, install siuba:

pip install siuba

Then, you can import forcats using...

from siuba.dply.forcats import fct_lump, fct_reorder          # etc..

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page