I am importing CSV data into postgreSQL using Python. I seem to have duplicates in my CSV file. I have five columns in my CSV file and one of them is username. How can I tell Python to show me the duplicates with the same username in my file. Please provide your kind assistance. I am new to Programming so please pardon my stupidity. If it's not possible with this code and script, how can I manipulate the code so I can find them duplicates in the CSV file.
import psycopg2
import csv
csv_data = csv.reader(file('SampleData2.csv'))