pandas.Index.min#
- Index.min(axis=None, skipna=True, *args, **kwargs)[源代码]#
返回索引的最小值。
- 参数
- axis{无}
与系列保持一致的伪参数。
- skipna布尔值,默认为True
显示结果时排除NA/NULL值。
- *args, ** 科瓦格人
与NumPy兼容的其他参数和关键字。
- 退货
- 标量
最小值。
参见
Index.max
返回对象的最大值。
Series.min
返回级数中的最小值。
DataFrame.min
返回DataFrame中的最小值。
示例
>>> idx = pd.Index([3, 2, 1]) >>> idx.min() 1
>>> idx = pd.Index(['c', 'b', 'a']) >>> idx.min() 'a'
对于多索引,最小值按词典顺序确定。
>>> idx = pd.MultiIndex.from_product([('a', 'b'), (2, 1)]) >>> idx.min() ('a', 1)