<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: how to remove empty rows from the data frame. in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/how-to-remove-empty-rows-from-the-data-frame/m-p/28482#M20278</link>
    <description>&lt;P&gt;&lt;/P&gt;
&lt;P&gt;You can use the .drop() function, which is available as part of DataFrameNaFunctions.&lt;/P&gt;
&lt;P&gt;With Scala:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://spark.apache.org/docs/2.1.0/api/java/org/apache/spark/sql/DataFrameNaFunctions.html#drop()" target="test_blank"&gt;https://spark.apache.org/docs/2.1.0/api/java/org/apache/spark/sql/DataFrameNaFunctions.html#drop()&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;With Python:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://spark.apache.org/docs/latest/api/python/pyspark.sql.html?highlight=nafunctions#pyspark.sql.DataFrameNaFunctions.drop" target="test_blank"&gt;https://spark.apache.org/docs/latest/api/python/pyspark.sql.html?highlight=nafunctions#pyspark.sql.DataFrameNaFunctions.drop&lt;/A&gt;&lt;/P&gt; 
&lt;P&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 20 Sep 2018 15:58:13 GMT</pubDate>
    <dc:creator>dillon_bostwick</dc:creator>
    <dc:date>2018-09-20T15:58:13Z</dc:date>
    <item>
      <title>how to remove empty rows from the data frame.</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-remove-empty-rows-from-the-data-frame/m-p/28481#M20277</link>
      <description>&lt;P&gt;&lt;/P&gt;
&lt;P&gt;lets assume if i have 10 columns in a data frame,all 10 columns has empty values for 100 rows out of 200 rows, how i can skip the empty rows?&lt;/P&gt; 
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Sep 2018 07:33:32 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-remove-empty-rows-from-the-data-frame/m-p/28481#M20277</guid>
      <dc:creator>dhanunjaya</dc:creator>
      <dc:date>2018-09-20T07:33:32Z</dc:date>
    </item>
    <item>
      <title>Re: how to remove empty rows from the data frame.</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-remove-empty-rows-from-the-data-frame/m-p/28482#M20278</link>
      <description>&lt;P&gt;&lt;/P&gt;
&lt;P&gt;You can use the .drop() function, which is available as part of DataFrameNaFunctions.&lt;/P&gt;
&lt;P&gt;With Scala:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://spark.apache.org/docs/2.1.0/api/java/org/apache/spark/sql/DataFrameNaFunctions.html#drop()" target="test_blank"&gt;https://spark.apache.org/docs/2.1.0/api/java/org/apache/spark/sql/DataFrameNaFunctions.html#drop()&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;With Python:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://spark.apache.org/docs/latest/api/python/pyspark.sql.html?highlight=nafunctions#pyspark.sql.DataFrameNaFunctions.drop" target="test_blank"&gt;https://spark.apache.org/docs/latest/api/python/pyspark.sql.html?highlight=nafunctions#pyspark.sql.DataFrameNaFunctions.drop&lt;/A&gt;&lt;/P&gt; 
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Sep 2018 15:58:13 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-remove-empty-rows-from-the-data-frame/m-p/28482#M20278</guid>
      <dc:creator>dillon_bostwick</dc:creator>
      <dc:date>2018-09-20T15:58:13Z</dc:date>
    </item>
    <item>
      <title>Re: how to remove empty rows from the data frame.</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-remove-empty-rows-from-the-data-frame/m-p/28483#M20279</link>
      <description>&lt;P&gt;&lt;/P&gt;
&lt;P&gt;@dillon, &lt;/P&gt;
&lt;P&gt;Drop will not help me in my case , i have a 200 rows in a table which has 100 rows as null and rest of rows has proper values .&lt;/P&gt; 
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Sep 2018 18:47:15 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-remove-empty-rows-from-the-data-frame/m-p/28483#M20279</guid>
      <dc:creator>dhanunjaya</dc:creator>
      <dc:date>2018-09-20T18:47:15Z</dc:date>
    </item>
    <item>
      <title>Re: how to remove empty rows from the data frame.</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-remove-empty-rows-from-the-data-frame/m-p/28484#M20280</link>
      <description>&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Simply you can just use the .drop() function, which is available as part of DataFrameNaFunctions.&lt;/P&gt; 
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 15 Sep 2019 14:33:04 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-remove-empty-rows-from-the-data-frame/m-p/28484#M20280</guid>
      <dc:creator>searro</dc:creator>
      <dc:date>2019-09-15T14:33:04Z</dc:date>
    </item>
    <item>
      <title>Re: how to remove empty rows from the data frame.</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-remove-empty-rows-from-the-data-frame/m-p/28485#M20281</link>
      <description>&lt;P&gt;&lt;/P&gt;
&lt;P&gt;@searro , it would be nice to have a well-formed example.&lt;/P&gt; 
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Sep 2019 10:31:22 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-remove-empty-rows-from-the-data-frame/m-p/28485#M20281</guid>
      <dc:creator>Malan_Francois_</dc:creator>
      <dc:date>2019-09-26T10:31:22Z</dc:date>
    </item>
    <item>
      <title>Re: how to remove empty rows from the data frame.</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-remove-empty-rows-from-the-data-frame/m-p/28486#M20282</link>
      <description>&lt;P&gt;&lt;/P&gt;
&lt;P&gt;How can we do this in Java. &lt;/P&gt;
&lt;P&gt;I have a DataFrame with three columns, When all three values are null. Is there a way to delete that row in java? &lt;/P&gt; 
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Dec 2019 12:10:23 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-remove-empty-rows-from-the-data-frame/m-p/28486#M20282</guid>
      <dc:creator>bhuvanrjb</dc:creator>
      <dc:date>2019-12-09T12:10:23Z</dc:date>
    </item>
    <item>
      <title>Re: how to remove empty rows from the data frame.</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-remove-empty-rows-from-the-data-frame/m-p/28487#M20283</link>
      <description>&lt;P&gt;&lt;/P&gt;
&lt;P&gt;you can try this: df.na.drop(how = "all"), this will remove the row only if all the rows are null or NaN&lt;/P&gt; 
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Mar 2020 17:44:03 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-remove-empty-rows-from-the-data-frame/m-p/28487#M20283</guid>
      <dc:creator>GaryDiaz</dc:creator>
      <dc:date>2020-03-18T17:44:03Z</dc:date>
    </item>
  </channel>
</rss>

