cancel
Showing results for 
Search instead for 
Did you mean: 

Using Python Scripts to analyse WpA Data

Leonardo_Matos
New Contributor II
New Contributor II

Hi there, starting this conversation to discuss with devs how they experiencing using Python to analyse WpA data. So far, do we have any API or solution instead of using R libraries through Python scripts?

1 ACCEPTED SOLUTION

Martin_Chan
Viva Expert
Viva Expert

Hi @Leonardo_Matos - currently, the wpa R library is the most comprehensive open-source and community solution for analysing Workplace Analytics data. Most, though not all, of its functionalities can however be replicated by Python libraries like pandas, numpy, ggplot / plotnine (close cousin of dplyr and ggplot2 in R) - see this very simple example here.  However, a Python version of the wpa R library does not currently (yet) exist. We have in the past suggested users to use rpy2 to access the wpa R functionalities, but have a mixture of reactions including: 

  1. Would prefer to switch to R instead for analysis, instead of using rpy2
  2. Would prefer to wait till a Python library is available 
  3. Will write Python scripts from scratch for custom analysis

It will actually be helpful to get a gauge of what analysts prefer here - what would your preference/ use case be? 

View solution in original post

2 REPLIES 2

Martin_Chan
Viva Expert
Viva Expert

Hi @Leonardo_Matos - currently, the wpa R library is the most comprehensive open-source and community solution for analysing Workplace Analytics data. Most, though not all, of its functionalities can however be replicated by Python libraries like pandas, numpy, ggplot / plotnine (close cousin of dplyr and ggplot2 in R) - see this very simple example here.  However, a Python version of the wpa R library does not currently (yet) exist. We have in the past suggested users to use rpy2 to access the wpa R functionalities, but have a mixture of reactions including: 

  1. Would prefer to switch to R instead for analysis, instead of using rpy2
  2. Would prefer to wait till a Python library is available 
  3. Will write Python scripts from scratch for custom analysis

It will actually be helpful to get a gauge of what analysts prefer here - what would your preference/ use case be? 

Leonardo_Matos
New Contributor II
New Contributor II

Thanks a lot for the response @Martin_Chan !