Python
LogicLoop offers a Python script execution environment to enhance your data analysis capabilities.
Accessing the Python Data Source
For security, the Python data source is disabled by default. To enable it, please reach out to support@logicloop.com. Once enabled, you can create a Python data source from Settings > Data Sources.
Generating Results in LogicLoop
In LogicLoop, you can build result tables by inspecting the final state of your script execution for a variable named result
. This variable should follow a specific format, as demonstrated in the example below:
When you execute the above snippet in LogicLoop, it will return a table like this:
date | day_number | value | total |
---|---|---|---|
2014-01-30 | 0 | 40832 | 53141 |
2014-01-30 | 1 | 27296 | 53141 |
2014-01-30 | 2 | 22982 | 53141 |
If you require additional Python libraries to support your queries in LogicLoop, please reach out at support@logicloop.com. We will be happy to assist you in adding the necessary libraries to enhance your scripting capabilities.
Last updated