keeping the first occurance of duplicate rows in pandas code example
Example: return the first occurence of duplicates pandas
DataFrame.drop_duplicates(subset=None, keep='first', inplace=False)[source]
DataFrame.drop_duplicates(subset=None, keep='first', inplace=False)[source]