Mysql Drop Duplicate Rows In Python List