Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

pandas get indices of mask

mask = df.test=='test'
df.index[mask].to_list()
 
PREVIOUS NEXT
Tagged: #pandas #indices #mask
ADD COMMENT
Topic
Name
3+5 =