DOC: fix Ward's distance formula
Merge pull request #4278 from mvdoc/docwardfix

DOC: fix Ward's distance formula
ENH: spatial: add query_subset to KDTree (#4236)
Fixes py3 and numpy compatability issues