<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Python code in pipeline in SAS Academy for Data Science</title>
    <link>https://communities.sas.com/t5/SAS-Academy-for-Data-Science/Python-code-in-pipeline/m-p/791236#M1111</link>
    <description>Hi:&lt;BR /&gt;  I don't recall a Python pipeline activity in the SAS Academy for Data Science classes. Can you clarify which class in the Data Science Academy you're working? The classes that use Viya would be in the AI&amp;amp;ML level, but there are 5 classes in that level and in order to ask the instructors for help, we need to know which class you're working in and what demo, activity or practice you're using. My understanding of the Data Science classes is that if they use R or Python in their examples, that they provide already working programs for students to use.&lt;BR /&gt;&lt;BR /&gt;  Are you perhaps using Jupyter Notebook with Viya for Learners in a University class or through a University? I'm guessing that might be a possibility because university students can get access to Viya for Learners without being enrolled in the SAS Academy for Data Science (and, in fact, not all the levels in our Data Science Academy use SAS Viya).&lt;BR /&gt;&lt;BR /&gt;  Here's an example of a Community Library post &lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/How-to-execute-Python-or-R-models-using-the-Open-Source-Code/ta-p/499463" target="_blank"&gt;https://communities.sas.com/t5/SAS-Communities-Library/How-to-execute-Python-or-R-models-using-the-Open-Source-Code/ta-p/499463&lt;/A&gt; that discusses running Python with SAS Enterprise Miner. And, this blog post discusses Jupyter Notebook with Viya for Learners: &lt;A href="https://blogs.sas.com/content/sgf/2020/04/15/getting-started-with-python-integration-to-sas-viya-part-1-making-a-connection/" target="_blank"&gt;https://blogs.sas.com/content/sgf/2020/04/15/getting-started-with-python-integration-to-sas-viya-part-1-making-a-connection/&lt;/A&gt; . If you are trying to import your own data into Viya for Learners, I believe that functionality is not available yet on Viya for Learners.&lt;BR /&gt;&lt;BR /&gt;  There's a whole series of articles on using Python with SAS Viya, you'll find the index here: &lt;A href="https://blogs.sas.com/content/sgf/2020/06/19/getting-started-with-python-integration-to-sas-viya-index/" target="_blank"&gt;https://blogs.sas.com/content/sgf/2020/06/19/getting-started-with-python-integration-to-sas-viya-index/&lt;/A&gt; .&lt;BR /&gt;&lt;BR /&gt;  I hope these resources get you pointed in the right direction. Jupyter Notebook and SAS Viya questions can also be asked in this forum: &lt;A href="https://communities.sas.com/t5/Administration-and-Deployment/bd-p/sas_admin" target="_blank"&gt;https://communities.sas.com/t5/Administration-and-Deployment/bd-p/sas_admin&lt;/A&gt; &lt;BR /&gt;&lt;BR /&gt;Cynthia&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Thu, 20 Jan 2022 18:59:46 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2022-01-20T18:59:46Z</dc:date>
    <item>
      <title>Python code in pipeline</title>
      <link>https://communities.sas.com/t5/SAS-Academy-for-Data-Science/Python-code-in-pipeline/m-p/791214#M1109</link>
      <description>&lt;P&gt;Good afternoon everyone!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm building a pipeline in SAS Vyia for learners and I would like to plot (if possible) a correlation matrix by computing it in python language (I attached the pipeline).&lt;/P&gt;&lt;P&gt;The code I've written so far is this on:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;import numpy as np&lt;BR /&gt;import seaborn as sns&lt;BR /&gt;import matplotlib.pyplot as plt&lt;BR /&gt;import pandas as pd&lt;BR /&gt;import warnings&lt;BR /&gt;warnings.filterwarnings('ignore')&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: inherit;"&gt;bank_df = pd.read_csv(dm_inputdf + "node_data.csv")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: inherit;"&gt;corr_df = bank_df.corr(method = "pearson")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: inherit;"&gt;plt.figure(figsize=(10,8))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: inherit;"&gt;sns.heatmap(corr_df, annot=True)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: inherit;"&gt;plt.show()&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Unfortunately I cannot execute it because it keeps giving me error.&lt;/P&gt;&lt;P&gt;Actually, I would like to print a correlation matrix of the entire datafile but I can't understand which kind of path I should use..&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so much,&lt;/P&gt;&lt;P&gt;Sara&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jan 2022 17:57:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Academy-for-Data-Science/Python-code-in-pipeline/m-p/791214#M1109</guid>
      <dc:creator>sarafrass</dc:creator>
      <dc:date>2022-01-20T17:57:59Z</dc:date>
    </item>
    <item>
      <title>Re: Python code in pipeline</title>
      <link>https://communities.sas.com/t5/SAS-Academy-for-Data-Science/Python-code-in-pipeline/m-p/791236#M1111</link>
      <description>Hi:&lt;BR /&gt;  I don't recall a Python pipeline activity in the SAS Academy for Data Science classes. Can you clarify which class in the Data Science Academy you're working? The classes that use Viya would be in the AI&amp;amp;ML level, but there are 5 classes in that level and in order to ask the instructors for help, we need to know which class you're working in and what demo, activity or practice you're using. My understanding of the Data Science classes is that if they use R or Python in their examples, that they provide already working programs for students to use.&lt;BR /&gt;&lt;BR /&gt;  Are you perhaps using Jupyter Notebook with Viya for Learners in a University class or through a University? I'm guessing that might be a possibility because university students can get access to Viya for Learners without being enrolled in the SAS Academy for Data Science (and, in fact, not all the levels in our Data Science Academy use SAS Viya).&lt;BR /&gt;&lt;BR /&gt;  Here's an example of a Community Library post &lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/How-to-execute-Python-or-R-models-using-the-Open-Source-Code/ta-p/499463" target="_blank"&gt;https://communities.sas.com/t5/SAS-Communities-Library/How-to-execute-Python-or-R-models-using-the-Open-Source-Code/ta-p/499463&lt;/A&gt; that discusses running Python with SAS Enterprise Miner. And, this blog post discusses Jupyter Notebook with Viya for Learners: &lt;A href="https://blogs.sas.com/content/sgf/2020/04/15/getting-started-with-python-integration-to-sas-viya-part-1-making-a-connection/" target="_blank"&gt;https://blogs.sas.com/content/sgf/2020/04/15/getting-started-with-python-integration-to-sas-viya-part-1-making-a-connection/&lt;/A&gt; . If you are trying to import your own data into Viya for Learners, I believe that functionality is not available yet on Viya for Learners.&lt;BR /&gt;&lt;BR /&gt;  There's a whole series of articles on using Python with SAS Viya, you'll find the index here: &lt;A href="https://blogs.sas.com/content/sgf/2020/06/19/getting-started-with-python-integration-to-sas-viya-index/" target="_blank"&gt;https://blogs.sas.com/content/sgf/2020/06/19/getting-started-with-python-integration-to-sas-viya-index/&lt;/A&gt; .&lt;BR /&gt;&lt;BR /&gt;  I hope these resources get you pointed in the right direction. Jupyter Notebook and SAS Viya questions can also be asked in this forum: &lt;A href="https://communities.sas.com/t5/Administration-and-Deployment/bd-p/sas_admin" target="_blank"&gt;https://communities.sas.com/t5/Administration-and-Deployment/bd-p/sas_admin&lt;/A&gt; &lt;BR /&gt;&lt;BR /&gt;Cynthia&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 20 Jan 2022 18:59:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Academy-for-Data-Science/Python-code-in-pipeline/m-p/791236#M1111</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2022-01-20T18:59:46Z</dc:date>
    </item>
    <item>
      <title>Re: Python code in pipeline</title>
      <link>https://communities.sas.com/t5/SAS-Academy-for-Data-Science/Python-code-in-pipeline/m-p/791240#M1112</link>
      <description>&lt;P&gt;Good afternoon &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13549"&gt;@Cynthia_sas&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;yes, you are totally right. I use Vyia for learners for my university degree in Data Science but I'm not enrolled in SAS Academy for Data Science.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am terribly sorry for the bother and for my mistake.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so much for the kind reply,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sara&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jan 2022 19:05:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Academy-for-Data-Science/Python-code-in-pipeline/m-p/791240#M1112</guid>
      <dc:creator>sarafrass</dc:creator>
      <dc:date>2022-01-20T19:05:02Z</dc:date>
    </item>
  </channel>
</rss>

