scikit-learn/scikit-learn — pull request #3010 by griffinmyers (2014-03-27 19:26:01+00:00)
Title: Fixed SelectKBest corner case: k=0

Without this fix k = 0 will have the same behavior as k = 'all' based on how
the array indexing was written.

I've included a test that demonstrates proper behaviour.