Skyworker AI Processor
Project description
Skyworker Processor: {processor_name}
Template repository for the Skyworker AI Processor
Requirements
Python >= 3.6
pip
venv (recommended)
Usage
- Clone this repository
- Update todos in setup.py file
- Update todos in skyworker_processor/__init__.py file
- Define your logic in skyworker_processor/core/processor.py module's
process
function
The return value of skyworker_processor.process()
function should be the pandas.DataFrame
object with following columns:
measurement
- Measurement Namevalue
- Calculated Value
and the index of each row should be the unique timestamp.
Example
import pandas as pd
from datetime import datetime
time_series = [
{
"timestamp": 1628150400,
"measurement": "Electricity Price",
"value": 0.23,
},
{
"timestamp": 1628236800,
"measurement": "Electricity Price",
"value": 0.25,
}
]
data_frame = pd.DataFrame(time_series)
# Set "timestamp" column as index.
data_frame.index = data_frame["timestamp"]
# Compose "time" column from the "timestamp"
data_frame["time"] = data_frame["timestamp"].map(datetime.fromtimestamp)
del data_frame["timestamp"]
Changelog
Please see CHANGELOG for details.
Authors
- Temuri Takalandze - Author and Maintainer
License
Copyright © 2021 Omedia.
Released under the Other/Proprietary License.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for skyworker_dev_petroleum_price_random-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7db4eecd746d5b7a3188c65a2830028840f77941b987f40b05febba6d3f4a85f |
|
MD5 | 1982b453127a7b4823f2bb12df90328c |
|
BLAKE2b-256 | 114753c3dc32d05ae7f0062bfb97dd8a656bef832a3e10f29cc79054eaf1852c |
Close
Hashes for skyworker_dev_petroleum_price_random-0.1.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cd08c0719939857b288970848902d5d6e0ae5394bce5dd64d37cd5cd72f0cda4 |
|
MD5 | f9127ef0d41a62d552347967c288b653 |
|
BLAKE2b-256 | 80fbcc8ec21e2c0f09cd2e50bfa674feaa682e2ae86c121ea949d507683b7660 |