PythonCode
Last updated
Was this helpful?
Last updated
Was this helpful?
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.
No requirements, any number of tables or inputs is allowed
Any python altered data frames or charts dictated by return
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:
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.
To create and return a table, provide a name
and pandas df
attribute to the Table
object.
To create and return a chart, provide a name
and plotly figure
attribute to the Chart
object.
Within the Code tool, the following libraries are accessible by default. Import libraries using import
:
Data manipulation
import pandas
API requests
import requests
Numerical and statistical operations
import numpy
URL Encoding/decoding
import urllib
JSON handling
import json