1idx = pd.Index(['lama', 'cow', 'lama', 'beetle', 'lama', 'hippo'])
2idx.drop_duplicates(keep='first')
3Index(['lama', 'cow', 'beetle', 'hippo'], dtype='object')
4idx.drop_duplicates(keep='last')
5Index(['cow', 'beetle','lamb', 'hippo'], dtype='object')
6idx.drop_duplicates(keep='False')
7Index(['cow', 'beetle','hippo'], dtype='object')