I've often used a scikit-learn DictVectorizer for generating sparse feature matrices. Never thought to leverage pandas Categorical types.
確定! 回上一頁