For a value in a pandas dataframe column, how do I find all other instances of that value in the same column?
Peter's answer got me on track. This gets me close to what I need. It iterates through values in a column and for each value gets the index numbers where it finds the same value in the same column. Please let me knw if there is a better way to go about this.
for i in range(0, len(df)):
temp_a=df[df['a'] == df.iloc[i]['a']].index.tolist()