There has been an issue and a pull request for something similar in DictVectorizer. https://github.com/scikit-learn/scikit-learn/pull/8750 got close to merging and I'm not really sure why it was closed rather than completed.
_______________________________________________ scikit-learn mailing list scikit-learn@python.org https://mail.python.org/mailman/listinfo/scikit-learn