I started using SASPy with SAS University Edition in the Jupyter editor. I was working on some examples and wanted to show how one could toggle between having the "teach me SAS" mode on vs. off. Unfortunately, I have been able to turn it on, but not off. According to references, sas.teach_me_SAS('true') turns the mode on - which it does - and sas.teach_me_SAS('false') is supposed to turn it off - which it doesn't. I'm not sure if I am missing something, but I am puzzled as to the issue.
Thank you for any help!
@jessica_hale The teach_me_SAS method is using the python boolean `True` and `False` to turn it on and off. Python is case-sensitive and the option should not be included inside quotes.
Here is a screen shot of the option being turned on and off.
Hi @jessica_hale - I've checked and I see the same behavior. I'll ping @Jared (main developer for SASPy) and see if he might have an answer.
@ChrisHemedinger Thank you!
@jessica_hale The teach_me_SAS method is using the python boolean `True` and `False` to turn it on and off. Python is case-sensitive and the option should not be included inside quotes.
Here is a screen shot of the option being turned on and off.
Ha! Confusion was partly my fault, as I showed this example on my blog post. I used the 'true' value which, in Python, must evaluate to True as a conditional. Unfortunately, 'false' probably also evaluates to True. I've fixed my code example and screen shot, and I've learned something new from @Jared (not unusual for me).
Thanks @ChrisHemedinger!
Thank you @Jared! I keep forgetting that Python syntax is case sensitive.
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.
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.