Reference - Functions¶
This documentation provides a comprehensive reference for all vivainsights functions, organized by category. Click any module name to view its full documentation.
Visualization Functions¶
Core Visualization¶
Calculate and visualize the mean of a metric by organizational group. |
|
Create boxplot visualizations of metric distributions by organizational group. |
|
Create a bubble chart visualization of two metrics by organizational group. |
|
Visualize the average of a metric by sub-population over time as a line chart. |
|
Rank all groups across HR attributes for a selected Viva Insights metric. |
|
Create a week-by-week heatmap of a selected Viva Insights metric. |
Specialized Visualizations¶
Create a Sankey chart from a two-column count table. |
|
Calculate the Gini coefficient and plot the Lorenz curve for a given metric. |
|
Analyze the proportion of a population above or below a metric threshold. |
|
Create a bar chart with customizable options and no pre-aggregation. |
Advanced Analytics Visualizations¶
Calculate Information Value (IV) and Weight of Evidence (WOE) for predictors. |
|
Calculate odds ratios for ordinal metrics against a specified outcome. |
Data Analysis & Identification¶
Employee Behavior Analysis¶
Identify and count employees who have churned from or joined the dataset. |
|
Calculate and summarize employee tenure based on hire and metric dates. |
|
Identify recurring behavioral habits from Viva Insights metrics. |
|
Segment employees into usage-based groups from collaboration metrics. |
Data Quality & Anomaly Detection¶
Identify outlier weeks using z-scores for a selected metric. |
|
Identify weeks where collaboration hours fall far below the mean. |
|
Detect holiday weeks by scanning for anomalous collaboration hours. |
|
Identify non-knowledge workers based on collaboration activity thresholds. |
Time & Date Analysis¶
Identify whether a date column has daily, weekly, or monthly frequency. |
|
Extract the minimum and maximum date range from a dataset. |
Network Analysis¶
Create a network plot from a group-to-group query. |
|
Perform person-to-person network analysis and visualization. |
|
Summarize node centrality statistics from an igraph network object. |
Data Management¶
Sample Data Sources¶
Load a sample person query dataset. |
|
Load a sample meeting query dataset. |
|
Load a sample group-to-group query dataset. |
|
Load a sample person-to-person query dataset. |
|
Load a sample person-to-group query dataset. |
|
Simulate a person-to-person network using the Watts-Strogatz model. |
Data Import & Export¶
Import a Viva Insights query from a CSV file with optimized variable types. |
|
Display and export data frames and plot objects to various formats. |
Utility Functions¶
Data Processing¶
Extract HR or organizational attribute columns from a Viva Insights dataset. |
|
Count the number of distinct persons by organizational group. |
|
Add a totals column with a specified value to a DataFrame. |
|
Replace underscores with spaces in a given string. |
Validation & Configuration¶
Validate that required variables exist in a DataFrame. |
|
Define color palettes and an Enum class for standard vivainsights colors. |
Advanced Analytics¶
Calculate the Chatterjee (xi) correlation coefficient for a given metric. |
|
Generate a heatmap or summary table scanning key Viva Insights metrics. |