<?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 specifically access the row and column of table data in CAS server using python in SAS Viya</title>
    <link>https://communities.sas.com/t5/SAS-Viya/How-to-specifically-access-the-row-and-column-of-table-data-in/m-p/447667#M163</link>
    <description>thanks. It works&lt;BR /&gt;</description>
    <pubDate>Thu, 22 Mar 2018 03:25:44 GMT</pubDate>
    <dc:creator>Zhteh</dc:creator>
    <dc:date>2018-03-22T03:25:44Z</dc:date>
    <item>
      <title>How to specifically access the row and column of table data in CAS server using python</title>
      <link>https://communities.sas.com/t5/SAS-Viya/How-to-specifically-access-the-row-and-column-of-table-data-in/m-p/447167#M161</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have successfully set up the connection to the cas server, fetch the data and also display the data using python script. I use the code as follows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;flag = conn.CASTable ('lalala' ,caslib = 'public')

flag = flag.table.fetch()
print(flag)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;and it gives me the output as follows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="Output.jpg" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/19342i0A3E8F27B5CE8889/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Output.jpg" alt="Output.jpg" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, I can't access the specific row and column of the table data (eg. row=0,col=1, value = 36945.0).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone tell me how to do it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Mar 2018 15:30:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/How-to-specifically-access-the-row-and-column-of-table-data-in/m-p/447167#M161</guid>
      <dc:creator>Zhteh</dc:creator>
      <dc:date>2018-03-20T15:30:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to specifically access the row and column of table data in CAS server using python</title>
      <link>https://communities.sas.com/t5/SAS-Viya/How-to-specifically-access-the-row-and-column-of-table-data-in/m-p/447193#M162</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/190736"&gt;@Zhteh&lt;/a&gt;,&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;However, I can't access the specific row and column of the table data (eg. row=0,col=1, value = 36945.0).&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You can:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;flag = conn.CASTable ('lalala' ,caslib = 'public')
print(flag['MSRP'].get(0))&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 20 Mar 2018 16:58:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/How-to-specifically-access-the-row-and-column-of-table-data-in/m-p/447193#M162</guid>
      <dc:creator>alexal</dc:creator>
      <dc:date>2018-03-20T16:58:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to specifically access the row and column of table data in CAS server using python</title>
      <link>https://communities.sas.com/t5/SAS-Viya/How-to-specifically-access-the-row-and-column-of-table-data-in/m-p/447667#M163</link>
      <description>thanks. It works&lt;BR /&gt;</description>
      <pubDate>Thu, 22 Mar 2018 03:25:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/How-to-specifically-access-the-row-and-column-of-table-data-in/m-p/447667#M163</guid>
      <dc:creator>Zhteh</dc:creator>
      <dc:date>2018-03-22T03:25:44Z</dc:date>
    </item>
  </channel>
</rss>

