Knowledge Base
Showing posts with label
#distinct
.
Show all posts
Showing posts with label
#distinct
.
Show all posts
Saturday, November 19, 2022
How to remove Duplicates in DataFrame using PySpark
Below ways can be used to remove duplicates from a dataframe in PySpark:
distinct
df.distinct()
df.distinct(["Column1","Column2"])
dropDuplicates
df.dropDuplicates()
df.dropDuplicates(["Column1","Column2"])
Older Posts
Home
Subscribe to:
Posts (Atom)