Data Transformation and ModelingRemoving duplicate rows: distinct(), dropDuplicates() and a key subset
In one line: Choose the natural key that defines a duplicate, then use distinct() for exact copies or dropDuplicates(subset) for one row per key.
You’ve read your 2 free Databricks DEA lessons
Sign up free to read every lesson — your progress is saved.
Spotted a mistake in this part?