• Databricks Community
  • Data Engineering
  • Re: how to remove empty rows from the data frame.

dillon_bostwick
Databricks Employee dillon_bostwick
Databricks Employee
Options
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Report Inappropriate Content

‎09-20-2018 08:58 AM

You can use the .drop() function, which is available as part of DataFrameNaFunctions.

With Scala:

https://spark.apache.org/docs/2.1.0/api/java/org/apache/spark/sql/DataFrameNaFunctions.html#drop()

With Python:

https://spark.apache.org/docs/latest/api/python/pyspark.sql.html?highlight=nafunctions#pyspark.sql.D...

0 Kudos
Reply
Powered by Khoros