Answers for ".drop_duplicates python"

2

delete the entire row while remove duplicates with python'

result_df = df.drop_duplicates(subset=['Column1', 'Column2'], keep='first')
print(result_df)
Posted by: Guest on March-04-2022
3

remove duplicates function python

def remove_dupiclates(list_):
	new_list = []
	for a in list_:
    	if a not in new_list:
        	new_list.append(a)
	return new_list
Posted by: Guest on September-22-2020

Python Answers by Framework

Browse Popular Code Answers by Language