<?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 How do I replace nulls with 0's in a DataFrame? in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/how-do-i-replace-nulls-with-0-s-in-a-dataframe/m-p/30599#M22208</link>
    <description />
    <pubDate>Thu, 30 Apr 2015 21:58:41 GMT</pubDate>
    <dc:creator>cfregly</dc:creator>
    <dc:date>2015-04-30T21:58:41Z</dc:date>
    <item>
      <title>How do I replace nulls with 0's in a DataFrame?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-do-i-replace-nulls-with-0-s-in-a-dataframe/m-p/30599#M22208</link>
      <description />
      <pubDate>Thu, 30 Apr 2015 21:58:41 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-do-i-replace-nulls-with-0-s-in-a-dataframe/m-p/30599#M22208</guid>
      <dc:creator>cfregly</dc:creator>
      <dc:date>2015-04-30T21:58:41Z</dc:date>
    </item>
    <item>
      <title>Re: How do I replace nulls with 0's in a DataFrame?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-do-i-replace-nulls-with-0-s-in-a-dataframe/m-p/30600#M22209</link>
      <description>&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use the &lt;PRE&gt;&lt;CODE&gt;DataFrame.na.fill()&lt;/CODE&gt;&lt;/PRE&gt; method in Scala and the &lt;PRE&gt;&lt;CODE&gt;DataFrame.fillna()&lt;/CODE&gt;&lt;/PRE&gt; method in Python.&lt;/P&gt;&lt;P&gt;Here are the relevant links:&lt;/P&gt;&lt;P&gt;Scala:&lt;/P&gt;&lt;P&gt;&lt;A href="https://spark.apache.org/docs/1.3.1/api/scala/index.html#org.apache.spark.sql.DataFrame" target="_blank"&gt;https://spark.apache.org/docs/latest/api/scala/index.html#org.apache.spark.sql.DataFrame&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://spark.apache.org/docs/1.3.1/api/scala/index.html#org.apache.spark.sql.DataFrame" target="_blank"&gt;&lt;/A&gt;&lt;A href="https://spark.apache.org/docs/latest/api/scala/index.html#org.apache.spark.sql.DataFrameNaFunctions" target="_blank"&gt;https://spark.apache.org/docs/latest/api/scala/index.html#org.apache.spark.sql.DataFrameNaFunctions&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Python:  &lt;/P&gt;&lt;P&gt;&lt;A href="http://spark.apache.org/docs/latest/api/python/pyspark.sql.html#pyspark.sql.DataFrame.fillna" target="_blank"&gt;http://spark.apache.org/docs/latest/api/python/pyspark.sql.html#pyspark.sql.DataFrame.fillna&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Apr 2015 22:00:10 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-do-i-replace-nulls-with-0-s-in-a-dataframe/m-p/30600#M22209</guid>
      <dc:creator>cfregly</dc:creator>
      <dc:date>2015-04-30T22:00:10Z</dc:date>
    </item>
    <item>
      <title>Re: How do I replace nulls with 0's in a DataFrame?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-do-i-replace-nulls-with-0-s-in-a-dataframe/m-p/30601#M22210</link>
      <description>&lt;P&gt;&lt;/P&gt;
&lt;P&gt;How Do I check if the column is null ,column is integer type &lt;/P&gt;
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 18 May 2016 20:04:58 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-do-i-replace-nulls-with-0-s-in-a-dataframe/m-p/30601#M22210</guid>
      <dc:creator>SiddarthaPaturu</dc:creator>
      <dc:date>2016-05-18T20:04:58Z</dc:date>
    </item>
    <item>
      <title>Re: How do I replace nulls with 0's in a DataFrame?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-do-i-replace-nulls-with-0-s-in-a-dataframe/m-p/30602#M22211</link>
      <description>&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Spark version 2.1.0 returns following error:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt; java.lang.NoSuchMethodError: org.apache.spark.sql.DataFrameNaFunctions.fill(JLscala/collection/Seq;)Lorg/apache/spark/sql/Dataset&lt;/CODE&gt;&lt;/PRE&gt; 
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 10 May 2017 21:28:46 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-do-i-replace-nulls-with-0-s-in-a-dataframe/m-p/30602#M22211</guid>
      <dc:creator>ManishTrivedi</dc:creator>
      <dc:date>2017-05-10T21:28:46Z</dc:date>
    </item>
    <item>
      <title>Re: How do I replace nulls with 0's in a DataFrame?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-do-i-replace-nulls-with-0-s-in-a-dataframe/m-p/30603#M22212</link>
      <description>&lt;P&gt;&lt;/P&gt;
&lt;P&gt;df.na.replace(df.columns,Map("" -&amp;gt; "0")).show() // to convert from blank strings to zero&lt;/P&gt; 
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Sep 2017 12:21:27 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-do-i-replace-nulls-with-0-s-in-a-dataframe/m-p/30603#M22212</guid>
      <dc:creator>GauravKhare</dc:creator>
      <dc:date>2017-09-04T12:21:27Z</dc:date>
    </item>
  </channel>
</rss>

