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

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

Register now!

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