BookmarkSubscribeRSS Feed
ngottala
SAS Employee

Dear All,

Say, I want to run the piece of python code on sas viya.  We have done the SAS and Python Configuration. 

1. pip install swat
2. import swat
3. import os
4. hostValue = os.environ.get('CASHOST')
portValue = os.environ.get('CASPORT')
passwordToken = os.environ.get('SAS_VIYA_TOKEN')
5. print(hostValue)
print(portValue)
print(passwordToken)
6. conn = swat.CAS(hostname=hostValue, port=portValue, password=passwordToken)
7. conn

8. pip install well_profile
9. import well_profile as wp

 

I need to run the following  python code, it is throwing error 

well = wp.load('trajectory1.xlsx')

well.plot(style={'color': 'dls', 'size' : 5}).show()

 

AttributeError: 'AxesSubplot' object has no attribute 'show
1 REPLY 1
gwootton
SAS Super FREQ
This error seems to be coming from "well_profile" rather than anything from your CAS connection.

https://github.com/pro-well-plan/well_profile
--
Greg Wootton | Principal Systems Technical Support Engineer

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

Register now

Discussion stats
  • 1 reply
  • 910 views
  • 0 likes
  • 2 in conversation