PythonCode
Allows for custom Python code to be executed against tables and objects inside an AuditBoard Analytics Workflow. One can ingest any number of sources and output any number of objects.

Input, Output
No requirements, any number of tables or inputs is allowed
Any python altered data frames or charts dictated by return
Accessing Objects & Parameters
Any source linked to the Python code tool is accessible using the sources dictionary, and objects can be accessed by their index or by their name. For example:
Similarly, workflow parameters are available using the variables dictionary. It's recommended to access parameter by their name:
Returning Objects
AuditBoard Analytics allows the return of Table or Chart objects for use in downstream tools. Objects can be returned as a single object or an array of objects.
Table
To create and return a table, provide a name and pandas df attribute to the Table object.
Chart
To create and return a chart, provide a name and plotly figure attribute to the Chart object.
Available Libraries
Within the Code tool, the following libraries are accessible by default. Import libraries using import:
Provides classes and functions for the estimation of many different statistical models
import statsmodels
Statistics, optimization, integration, linear algebra, Fourier transforms, signal and image processing, ODE solvers, and more.
import scipy
Last updated
Was this helpful?