<?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 can I use display() in a python notebook with pyspark.sql.Row Objects, e.g. after calling the first() operation on a DataFrame? in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/how-can-i-use-display-in-a-python-notebook-with-pyspark-sql-row/m-p/30646#M22240</link>
    <description>&lt;P&gt;&lt;/P&gt;
&lt;P&gt;I'm trying to &lt;PRE&gt;&lt;CODE&gt;display()&lt;/CODE&gt;&lt;/PRE&gt; the results from calling &lt;PRE&gt;&lt;CODE&gt;first()&lt;/CODE&gt;&lt;/PRE&gt; on a DataFrame, but &lt;PRE&gt;&lt;CODE&gt;display()&lt;/CODE&gt;&lt;/PRE&gt; doesn't work with &lt;PRE&gt;&lt;CODE&gt;pyspark.sql.Row&lt;/CODE&gt;&lt;/PRE&gt; objects. How can I display this result?&lt;/P&gt; 
&lt;P&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 22 Apr 2015 16:24:42 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-04-22T16:24:42Z</dc:date>
    <item>
      <title>How can I use display() in a python notebook with pyspark.sql.Row Objects, e.g. after calling the first() operation on a DataFrame?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-can-i-use-display-in-a-python-notebook-with-pyspark-sql-row/m-p/30646#M22240</link>
      <description>&lt;P&gt;&lt;/P&gt;
&lt;P&gt;I'm trying to &lt;PRE&gt;&lt;CODE&gt;display()&lt;/CODE&gt;&lt;/PRE&gt; the results from calling &lt;PRE&gt;&lt;CODE&gt;first()&lt;/CODE&gt;&lt;/PRE&gt; on a DataFrame, but &lt;PRE&gt;&lt;CODE&gt;display()&lt;/CODE&gt;&lt;/PRE&gt; doesn't work with &lt;PRE&gt;&lt;CODE&gt;pyspark.sql.Row&lt;/CODE&gt;&lt;/PRE&gt; objects. How can I display this result?&lt;/P&gt; 
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Apr 2015 16:24:42 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-can-i-use-display-in-a-python-notebook-with-pyspark-sql-row/m-p/30646#M22240</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-22T16:24:42Z</dc:date>
    </item>
    <item>
      <title>Re: How can I use display() in a python notebook with pyspark.sql.Row Objects, e.g. after calling the first() operation on a DataFrame?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-can-i-use-display-in-a-python-notebook-with-pyspark-sql-row/m-p/30647#M22241</link>
      <description>&lt;P&gt;&lt;/P&gt;
&lt;P&gt;The &lt;PRE&gt;&lt;CODE&gt;display()&lt;/CODE&gt;&lt;/PRE&gt; function requires a collection as opposed to single item, so any of the following examples will give you a means to displaying the results:&lt;/P&gt;
&lt;UL&gt;&lt;LI&gt;`display([df.first()])` # just make it an array&lt;/LI&gt;&lt;LI&gt;&lt;PRE&gt;&lt;CODE&gt;display(df.take(1))&lt;/CODE&gt;&lt;/PRE&gt; # take w/ 1 is functionally equivalent to first(), but returns a DataFrame&lt;/LI&gt;&lt;LI&gt;&lt;PRE&gt;&lt;CODE&gt;display(df.limit(1))&lt;/CODE&gt;&lt;/PRE&gt; # I'm not 100% sure this is guaranteed to be ordered, but it's another option to try that returns a DataFrame&lt;/LI&gt;&lt;/UL&gt; 
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Apr 2015 16:28:09 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-can-i-use-display-in-a-python-notebook-with-pyspark-sql-row/m-p/30647#M22241</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-22T16:28:09Z</dc:date>
    </item>
    <item>
      <title>Re: How can I use display() in a python notebook with pyspark.sql.Row Objects, e.g. after calling the first() operation on a DataFrame?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-can-i-use-display-in-a-python-notebook-with-pyspark-sql-row/m-p/30648#M22242</link>
      <description>&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Use take()&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Nov 2015 23:22:36 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-can-i-use-display-in-a-python-notebook-with-pyspark-sql-row/m-p/30648#M22242</guid>
      <dc:creator>dnchari</dc:creator>
      <dc:date>2015-11-18T23:22:36Z</dc:date>
    </item>
  </channel>
</rss>

