How do I print/return the index of a particular value?
movies_per_year = pd.DataFrame(movies_per_year)
movies_per_year.columns = ["count"]
print(movies_per_year)
        count
year       
1891      1
1893      1
1894      2
1895      2
1896      2
1898      5
Here, my index is the year. I want to return all the indexes where count is 1. Furthermore movies_per_year.max() returns 5. So, it should return 1898.
 
    