Zencos has merged with Executive Information Systems (EIS)
twitter-icon
Free Strategy Consultation
Zencos Icon

Services

Contact Us

Blog

Python and SAS Viya: 3 Reasons We Fell In Love

Advanced Analytics

Obi Mbah

06/29/2017

Fierce preferences for specific tools are prevalent in the data analytics community. Equally prevalent is the idea that using the right tool for the job is the most efficient way to get results. Connect to SAS Viya Platform using the Python SWAT package allows users to seamlessly switch between preferred tools to efficiently achieve results.

To uncover the realities of using these tools together we went to work on a dataset containing all the FBS College Football games from the 2011-2016 seasons. Our goal was to observe statistics across both conferences and teams. To do this we transformed the game-level data to a team-level dataset with one row per team per game.

Upon completion of this exploration, we found that the coupling of Python and SAS Viya had three advantages: Access to Python’s Pandas indexing and data selection capabilities, SAS Visual Analytics streamlined visual data exploration and SAS Cloud Analytic Services’ (CAS) server at the center of our project.

1.  Transform Data with Python Pandas

Depending on the transformation needed, a SQL statement or a data step could be the best choice. In the case of our problem, and many others, leveraging the indexing power of Pandas is a major advantage that allows for the creation of transformed datasets and new variables in the most efficient way.

sas viya python open source integration

Once the transformations are complete the new dataset can be loaded to SAS CAS server with a single line of code.

sas viya python integration

2. Speedy data exploration with SAS Visual Analytics

SAS Visual Analytics an industry-leading data visualization tool that we can now just pop our newly transformed data into and quickly uncover a variety of insights.

We found the Measure Detail viewer to be particularly helpful with early data exploration.

sas viya open source integration python

3. Storing data in CAS Server saves switching costs

Moving data between technologies often comes with high switching costs. These costs arise when data must be exported from one tool, imported into another, and exported yet again when work is complete. Connecting Python with SAS CAS server allows us to load our data once and access it from our tool of choice without incurring the time and effort costs of switching from one tool to another.

Using Python SWAT to connect to SAS Viya empowers the use of the correct tool for the job and the flexibility to switch between the two with ease. We look forward to seeing how the coupling of these tools allows us, and others, to get to higher quality results more quickly in the future.

Thinking of Open Source Integration

Zencos has helped multiple customers realize the power, speed, and flexibility of integrating open source tools on the SAS Viya platform.

Customers love our SAS Viya Quickstart program where we do the hard work and they do the fun part – creating awesome SAS analytics!

 

 …..

Related Insights

Blog

Python Won’t Solve All the World’s Problems, but It May Solve Yours

Blog

How Successfully Migrate Your SAS Environment to the Cloud

Blog

Using SAS Data Integration Studio to Load Covid-19 Case Surveillance Data

Blog

Bridge Your Analytical Code Gaps: How to Build Custom Applications with SAS Viya