gchandra
Databricks Employee
Databricks Employee

Please try this pyspark solution. 
df = spark.table("yourtablename")
df = df.dropDuplicates()

or use the Row_number() query and use DELETE statement where rn > 1



~

View solution in original post