DOC: revised 0.13 internal refactoring to add np.where