pandas.Index.min #
- 指数。min ( axis = None , skipna = True , * args , ** kwargs ) [来源] #
返回索引的最小值。
- 参数:
- 轴{无}
与系列一致性的虚拟论证。
- Skipna布尔值,默认 True
显示结果时排除 NA/null 值。
- *args,**kwargs
用于与 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'
对于 MultiIndex,最小值是按字典顺序确定的。
>>> idx = pd.MultiIndex.from_product([('a', 'b'), (2, 1)]) >>> idx.min() ('a', 1)