fix #850

This either breaks the function or invalidates the docstring for minmax (it still says extreme values will be masked).

The import statement above can also be cleaned up if this line is removed.