Issue 1:
Is your feature request related to a problem? Please describe.

The docstring of find_objects does not specify the order in which the slices are returned, but (per #277 and #13648 (comment)) it seems that it returns them "in order", i.e. first the slices corresponding to label 1, then the slice corresponding to label 2, etc. This is nice, but not obvious given the current docstring:

Find objects in a labeled array.

Parameters
----------
input : ndarray of ints
Array containing objects defined by different labels. Labels with
value 0 are ignored.
max_label : int, optional
Maximum label to be searched for in `input`. If max_label is not
given, the positions of all objects are returned.

Returns
-------
object_slices : list of tuples
A list of tuples, with each tuple containing N slices (with N the
dimension of the input array). Slices correspond to the minimal
parallelepiped that contains the object.

Each tuple If a number is missing,
None is returned instead of a slice.

e.g. it could easily have been the case that slices are simply returned in the order in which objects are seen when raster scanning through the image. (The remark about None and missing numbers hints at the actual behavior, but is quite implicit.)

Describe the solution you'd like.

Clarify that label l corresponds to index l - 1 in the returned array.

Describe alternatives you've considered.

N/A

Additional context (e.g. screenshots, GIFs)

N/A

Issue 2:
Reference: scikit-learn/scikit-learn#17174

Hello,

I am getting and error when importing sklearn.preprocessing. In the above referenced issue, it was found out to be a scipy installation issue. Please help in resolving. Thanks

Python version: Python 3.5.1rc1

The notebook that I am working on is running from a virtual environment.

Here are the installed packages in that environment. pip_list.txt

Error Details:

from scipy.sparse import issparse

ImportError Traceback (most recent call last)

in

3 from matplotlib import pyplot

4

----> 5 from scipy.sparse import issparse

c:\users\local_user\appdata\local\programs\python\python35\notebook\lib\site-packages\scipy_init_.py in

154 # This makes "from scipy import fft" return scipy.fft, not np.fft

155 del fft

--> 156 from . import fft

c:\users\local_user\appdata\local\programs\python\python35\notebook\lib\site-packages\scipy\fft_init_.py in

74 from future import division, print_function, absolute_import

75

---> 76 from ._basic import (

77 fft, ifft, fft2, ifft2, fftn, ifftn,

78 rfft, irfft, rfft2, irfft2, rfftn, irfftn,

c:\users\local_user\appdata\local\programs\python\python35\notebook\lib\site-packages\scipy\fft_basic.py in

----> 1 from scipy._lib.uarray import generate_multimethod, Dispatchable

2 import numpy as np

3

4

5 def _x_replacer(args, kwargs, dispatchables):

c:\users\local_user\appdata\local\programs\python\python35\notebook\lib\site-packages\scipy_lib\uarray.py in

25 from uarray import _Function

26 else:

---> 27 from ._uarray import *

28 from ._uarray import _Function

29

c:\users\local_user\appdata\local\programs\python\python35\notebook\lib\site-packages\scipy_lib_uarray_init_.py in

112 """

113

--> 114 from ._backend import *

115

116 version = '0.5.1+5.ga864a57.scipy'

c:\users\local_user\appdata\local\programs\python\python35\notebook\lib\site-packages\scipy_lib_uarray_backend.py in

----> 1 from typing import (

2 Callable,

3 Iterable,

4 Dict,

5 Tuple,

ImportError: cannot import name 'Type'