def max(self, axis=None, skipna=True, *args, **kwargs):
<EOL>nv.validate_max(args, kwargs)<EOL>nv.validate_minmax_axis(axis)<EOL>mask = self.isna()<EOL>if skipna:<EOL><INDENT>values = self[~mask].asi8<EOL><DEDENT>elif mask.any():<EOL><INDENT>return NaT<EOL><DEDENT>else:<EOL><INDENT>values = self.asi8<EOL><DEDENT>if not len(values):<EOL><INDENT>return NaT<EOL><DEDENT>result = nanops.nanmax(values, skipna=skipna)<EOL>return self._box_func(result)<EOL>
Return the maximum value of the Array or maximum along
an axis.

See Also
--------
numpy.ndarray.max
Index.max : Return the maximum value in an Index.
Series.max : Return the maximum value in a Series.