| 7003 | return result |
| 7004 | |
| 7005 | def min(obj, axis=None, out=None, fill_value=None, keepdims=np._NoValue): |
| 7006 | kwargs = {} if keepdims is np._NoValue else {'keepdims': keepdims} |
| 7007 | |
| 7008 | try: |
| 7009 | return obj.min(axis=axis, fill_value=fill_value, out=out, **kwargs) |
| 7010 | except (AttributeError, TypeError): |
| 7011 | # If obj doesn't have a min method, or if the method doesn't accept a |
| 7012 | # fill_value argument |
| 7013 | return asanyarray(obj).min(axis=axis, fill_value=fill_value, |
| 7014 | out=out, **kwargs) |
| 7015 | |
| 7016 | |
| 7017 | min.__doc__ = MaskedArray.min.__doc__ |