- 用法:- Index.any(*args, **kwargs)
- 返回是否有任何元素是真實的。 - *args:
- 與 numpy 兼容是必需的。 
- **kwargs:
- 與 numpy 兼容是必需的。 
 
- any:bool 或 array-like(如果指定了軸)
- 單個元素array-like 可以轉換為布爾值。 
 
 - 參數:- 返回:- 注意:- 非數字 (NaN)、正無窮大和負無窮大評估為 True,因為它們不等於零。 - 例子:- >>> index = pd.Index([0, 1, 2]) >>> index.any() True- >>> index = pd.Index([0, 0, 0]) >>> index.any() False
相關用法
- Python pandas.Index.argmin用法及代碼示例
- Python pandas.Index.argmax用法及代碼示例
- Python pandas.Index.all用法及代碼示例
- Python pandas.Index.array用法及代碼示例
- Python pandas.Index.argsort用法及代碼示例
- Python pandas.Index.asof用法及代碼示例
- Python pandas.Index.value_counts用法及代碼示例
- Python pandas.Index.is_categorical用法及代碼示例
- Python pandas.Index.to_series用法及代碼示例
- Python pandas.Index.str用法及代碼示例
- Python pandas.Index.to_numpy用法及代碼示例
- Python pandas.Index.is_object用法及代碼示例
- Python pandas.Index.slice_indexer用法及代碼示例
- Python pandas.Index.is_interval用法及代碼示例
- Python pandas.Index.notnull用法及代碼示例
- Python pandas.Index.equals用法及代碼示例
- Python pandas.Index.set_names用法及代碼示例
- Python pandas.Index.searchsorted用法及代碼示例
- Python pandas.Index.duplicated用法及代碼示例
- Python pandas.Index.is_monotonic_increasing用法及代碼示例
注:本文由純淨天空篩選整理自pandas.pydata.org大神的英文原創作品 pandas.Index.any。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。
