ActionSyntax
show Dataframedf.show()
Stop Spark Sessionspark.stop()
Count entries in dataframedf.count()
Write to Delta tabledf.write.format(“delta”).mode(“overwrite”).save(“/venv/storage”)
Read from Delta Tabledf = spark.read.format(“delta”).load(“/venv/storage”)
Remove Duplicatesdf = df.dropDuplicates()

0 Comments

Leave a Reply

Avatar placeholder

Your email address will not be published. Required fields are marked *