human
How to find duplicate names using pandas?
assistant
Here is some code to find duplicate names in column 'name' of the dataframe `x`

x.set_index('name').index.get_duplicates()

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.