当前位置: 首页>>代码示例>>Python>>正文


Python nanops.nanmin方法代码示例

本文整理汇总了Python中pandas.core.nanops.nanmin方法的典型用法代码示例。如果您正苦于以下问题:Python nanops.nanmin方法的具体用法?Python nanops.nanmin怎么用?Python nanops.nanmin使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在pandas.core.nanops的用法示例。


在下文中一共展示了nanops.nanmin方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: min

# 需要导入模块: from pandas.core import nanops [as 别名]
# 或者: from pandas.core.nanops import nanmin [as 别名]
def min(self, axis=None, skipna=True, *args, **kwargs):
        """
        Return the minimum value of the Array or minimum along
        an axis.

        See Also
        --------
        numpy.ndarray.min
        Index.min : Return the minimum value in an Index.
        Series.min : Return the minimum value in a Series.
        """
        nv.validate_min(args, kwargs)
        nv.validate_minmax_axis(axis)

        result = nanops.nanmin(self.asi8, skipna=skipna, mask=self.isna())
        if isna(result):
            # Period._from_ordinal does not handle np.nan gracefully
            return NaT
        return self._box_func(result) 
开发者ID:Frank-qlu,项目名称:recruit,代码行数:21,代码来源:datetimelike.py

示例2: test_nanmin

# 需要导入模块: from pandas.core import nanops [as 别名]
# 或者: from pandas.core.nanops import nanmin [as 别名]
def test_nanmin(self):
        with warnings.catch_warnings(record=True):
            warnings.simplefilter("ignore", RuntimeWarning)
            func = partial(self._minmax_wrap, func=np.min)
            self.check_funs(nanops.nanmin, func,
                            allow_str=False, allow_obj=False) 
开发者ID:Frank-qlu,项目名称:recruit,代码行数:8,代码来源:test_nanops.py

示例3: min

# 需要导入模块: from pandas.core import nanops [as 别名]
# 或者: from pandas.core.nanops import nanmin [as 别名]
def min(self, axis=None, out=None, keepdims=False, skipna=True):
        nv.validate_min((), dict(out=out, keepdims=keepdims))
        return nanops.nanmin(self._ndarray, axis=axis, skipna=skipna) 
开发者ID:Frank-qlu,项目名称:recruit,代码行数:5,代码来源:numpy_.py

示例4: min

# 需要导入模块: from pandas.core import nanops [as 别名]
# 或者: from pandas.core.nanops import nanmin [as 别名]
def min(self, axis=None, skipna=True):
        """
        Return the minimum value of the Index.

        Parameters
        ----------
        axis : {None}
            Dummy argument for consistency with Series
        skipna : bool, default True

        Returns
        -------
        scalar
            Minimum value.

        See Also
        --------
        Index.max : Return the maximum value of the object.
        Series.min : Return the minimum value in a Series.
        DataFrame.min : Return the minimum values in a DataFrame.

        Examples
        --------
        >>> idx = pd.Index([3, 2, 1])
        >>> idx.min()
        1

        >>> idx = pd.Index(['c', 'b', 'a'])
        >>> idx.min()
        'a'

        For a MultiIndex, the minimum is determined lexicographically.

        >>> idx = pd.MultiIndex.from_product([('a', 'b'), (2, 1)])
        >>> idx.min()
        ('a', 1)
        """
        nv.validate_minmax_axis(axis)
        return nanops.nanmin(self._values, skipna=skipna) 
开发者ID:Frank-qlu,项目名称:recruit,代码行数:41,代码来源:base.py

示例5: test_nanmin

# 需要导入模块: from pandas.core import nanops [as 别名]
# 或者: from pandas.core.nanops import nanmin [as 别名]
def test_nanmin(self):
        with warnings.catch_warnings(record=True):
            func = partial(self._minmax_wrap, func=np.min)
            self.check_funs(nanops.nanmin, func,
                            allow_str=False, allow_obj=False) 
开发者ID:birforce,项目名称:vnpy_crypto,代码行数:7,代码来源:test_nanops.py

示例6: min

# 需要导入模块: from pandas.core import nanops [as 别名]
# 或者: from pandas.core.nanops import nanmin [as 别名]
def min(self):
        """
        Return the minimum value of the Index.

        Returns
        -------
        scalar
            Minimum value.

        See Also
        --------
        Index.max : Return the maximum value of the object.
        Series.min : Return the minimum value in a Series.
        DataFrame.min : Return the minimum values in a DataFrame.

        Examples
        --------
        >>> idx = pd.Index([3, 2, 1])
        >>> idx.min()
        1

        >>> idx = pd.Index(['c', 'b', 'a'])
        >>> idx.min()
        'a'

        For a MultiIndex, the minimum is determined lexicographically.

        >>> idx = pd.MultiIndex.from_product([('a', 'b'), (2, 1)])
        >>> idx.min()
        ('a', 1)
        """
        return nanops.nanmin(self.values) 
开发者ID:birforce,项目名称:vnpy_crypto,代码行数:34,代码来源:base.py

示例7: min

# 需要导入模块: from pandas.core import nanops [as 别名]
# 或者: from pandas.core.nanops import nanmin [as 别名]
def min(self):
        """ The minimum value of the object """
        return nanops.nanmin(self.values) 
开发者ID:nccgroup,项目名称:Splunking-Crime,代码行数:5,代码来源:base.py

示例8: test_nanmin

# 需要导入模块: from pandas.core import nanops [as 别名]
# 或者: from pandas.core.nanops import nanmin [as 别名]
def test_nanmin(self):
        func = partial(self._minmax_wrap, func=np.min)
        self.check_funs(nanops.nanmin, func, allow_str=False, allow_obj=False) 
开发者ID:securityclippy,项目名称:elasticintel,代码行数:5,代码来源:test_nanops.py


注:本文中的pandas.core.nanops.nanmin方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。