📜  pandas 找到大于的值的位置 - Python 代码示例

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

代码示例1
#Find the index of values greater than 0 and put them in a list
data.Dividends[data.Dividends>0].index.to_list()
#To get the index along with its values we make the code shorter:
data.Dividends[data.Dividends>0]