Pandas drop_duplicates method not working on dataframe containing lists

drop_duplicates won’t work with lists in your dataframe as the error message implies. However, you can drop duplicates on the dataframe casted as str and then extract the rows from original df using the index from the results. Setup df = pd.DataFrame({‘Keyword’: {0: ‘apply’, 1: ‘apply’, 2: ‘apply’, 3: ‘terms’, 4: ‘terms’}, ‘X’: {0: [1, … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)