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 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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