| 6800 | return result |
| 6801 | |
| 6802 | def min(obj, axis=None, out=None, fill_value=None, keepdims=np._NoValue): |
| 6803 | kwargs = {} if keepdims is np._NoValue else {'keepdims': keepdims} |
| 6804 | |
| 6805 | try: |
| 6806 | return obj.min(axis=axis, fill_value=fill_value, out=out, **kwargs) |
| 6807 | except (AttributeError, TypeError): |
| 6808 | # If obj doesn't have a min method, or if the method doesn't accept a |
| 6809 | # fill_value argument |
| 6810 | return asanyarray(obj).min(axis=axis, fill_value=fill_value, |
| 6811 | out=out, **kwargs) |
| 6812 | min.__doc__ = MaskedArray.min.__doc__ |
| 6813 | |
| 6814 | def max(obj, axis=None, out=None, fill_value=None, keepdims=np._NoValue): |