Пример #1
0
 def argmax(self,
            axis: int = 0,
            skipna: bool = True):  # type:ignore[override]
     # override base class by adding axis keyword
     validate_bool_kwarg(skipna, "skipna")
     if not skipna and self.isna().any():
         raise NotImplementedError
     return nargminmax(self, "argmax", axis=axis)
Пример #2
0
    def argmax(self):
        """
        Return the index of maximum value.

        In case of multiple occurrences of the maximum value, the index
        corresponding to the first occurrence is returned.

        Returns
        -------
        int

        See Also
        --------
        ExtensionArray.argmin
        """
        return nargminmax(self, "argmax")
Пример #3
0
    def argmax(self, skipna: bool = True) -> int:
        """
        Return the index of maximum value.

        In case of multiple occurrences of the maximum value, the index
        corresponding to the first occurrence is returned.

        Parameters
        ----------
        skipna : bool, default True

        Returns
        -------
        int

        See Also
        --------
        ExtensionArray.argmin
        """
        validate_bool_kwarg(skipna, "skipna")
        if not skipna and self.isna().any():
            raise NotImplementedError
        return nargminmax(self, "argmax")