Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

pandas find location of values greater than

#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]
 
PREVIOUS NEXT
Tagged: #pandas #find #location #values #greater
ADD COMMENT
Topic
Name
8+1 =