📜  pandas print nonzero in series - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:27.388000             🧑  作者: Mango

代码示例1
>>> s = pd.Series([0, 3, 0, 4])

>>> s.iloc[s.nonzero()[0]]
1    3
3    4
dtype: int64