Forum Discussion
Using Python Scripts to analyse WpA Data
- Oct 22, 2021
Hi VI_Migration - currently, the https://microsoft.github.io/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 https://community.vivainsights.microsoft.com/t5/Script-gallery/Analyse-Person-level-Metrics-in-Python/ba-p/565. 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:
- Would prefer to switch to R instead for analysis, instead of using rpy2
- Would prefer to wait till a Python library is available
- 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?
Thanks a lot for the response VI_Migration !