Using Patsy for Categorical Data
Patsy is one of those really cool Python libraries that does one thing - and only one thing - really well. The data we are given often contains categorical variables that must be transformed into something meaningful, and Patsy provides a very clean way to do this. Patsy is a sharp knife in your kitchen.
- How to use Patsy to build design matrices.
- Tricks on how to use Patsy more effectively.
We Also Recommend