BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
Zhteh
Calcite | Level 5

Hi,

 

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:

 

flag = conn.CASTable ('lalala' ,caslib = 'public')

flag = flag.table.fetch()
print(flag)

and it gives me the output as follows:

 

Output.jpg 

 

 

 

 

 

 

 

 

 

 

 

 

However, I can't access the specific row and column of the table data (eg. row=0,col=1, value = 36945.0).

 

Can anyone tell me how to do it?

 

Thanks

 

1 ACCEPTED SOLUTION

Accepted Solutions
alexal
SAS Employee

@Zhteh,

However, I can't access the specific row and column of the table data (eg. row=0,col=1, value = 36945.0).

 

You can:

 

flag = conn.CASTable ('lalala' ,caslib = 'public')
print(flag['MSRP'].get(0))

View solution in original post

2 REPLIES 2
alexal
SAS Employee

@Zhteh,

However, I can't access the specific row and column of the table data (eg. row=0,col=1, value = 36945.0).

 

You can:

 

flag = conn.CASTable ('lalala' ,caslib = 'public')
print(flag['MSRP'].get(0))

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

Discussion stats
  • 2 replies
  • 1174 views
  • 0 likes
  • 2 in conversation