<?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>question Re: pyspark get row value from row object in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/pyspark-get-row-value-from-row-object/m-p/211963#M173902</link>
    <description>&lt;P&gt;OR&lt;/P&gt;&lt;PRE&gt;.collect()[0][1]&lt;/PRE&gt;</description>
    <pubDate>Tue, 29 May 2018 21:17:53 GMT</pubDate>
    <dc:creator>umair_khan</dc:creator>
    <dc:date>2018-05-29T21:17:53Z</dc:date>
    <item>
      <title>pyspark get row value from row object</title>
      <link>https://community.cloudera.com/t5/Support-Questions/pyspark-get-row-value-from-row-object/m-p/211961#M173900</link>
      <description>&lt;P&gt;Using .collect  method I am able to create a row object my_list[0] which is as shown below&lt;/P&gt;&lt;PRE&gt;my_list[0]

Row(Specific Name/Path (to be updated)=u'Monitoring_Monitoring.csv')&lt;/PRE&gt;&lt;P&gt;How Can I fetch row value . It gives synatx errors as there are spaces in row name. &lt;/P&gt;</description>
      <pubDate>Tue, 29 May 2018 13:23:30 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/pyspark-get-row-value-from-row-object/m-p/211961#M173900</guid>
      <dc:creator>bharatbs13</dc:creator>
      <dc:date>2018-05-29T13:23:30Z</dc:date>
    </item>
    <item>
      <title>Re: pyspark get row value from row object</title>
      <link>https://community.cloudera.com/t5/Support-Questions/pyspark-get-row-value-from-row-object/m-p/211962#M173901</link>
      <description>&lt;P&gt; &lt;A rel="user" href="https://community.cloudera.com/users/83153/bharatbs13.html" nodeid="83153"&gt;@bharat sharma&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;You can do it in the 2 ways&lt;/P&gt;&lt;PRE&gt;my_list[0].__getitem__("col name")&lt;/PRE&gt;&lt;PRE&gt;my_list[0].asDict()["col name"]&lt;/PRE&gt;&lt;P&gt;Please "Accept" the answer if this works.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;-Aditya&lt;/P&gt;</description>
      <pubDate>Tue, 29 May 2018 14:26:41 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/pyspark-get-row-value-from-row-object/m-p/211962#M173901</guid>
      <dc:creator>asirna</dc:creator>
      <dc:date>2018-05-29T14:26:41Z</dc:date>
    </item>
    <item>
      <title>Re: pyspark get row value from row object</title>
      <link>https://community.cloudera.com/t5/Support-Questions/pyspark-get-row-value-from-row-object/m-p/211963#M173902</link>
      <description>&lt;P&gt;OR&lt;/P&gt;&lt;PRE&gt;.collect()[0][1]&lt;/PRE&gt;</description>
      <pubDate>Tue, 29 May 2018 21:17:53 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/pyspark-get-row-value-from-row-object/m-p/211963#M173902</guid>
      <dc:creator>umair_khan</dc:creator>
      <dc:date>2018-05-29T21:17:53Z</dc:date>
    </item>
  </channel>
</rss>

