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_electricity_price_random-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8afc253ca4fb4707c03906fccdc08db1a97466c17d2c30539182b2e56f230d46 |
|
MD5 | 90c8754158bb0413495e65456d9195b6 |
|
BLAKE2b-256 | 7cb7717c01453fa041a445af008b7055e5b0def9e5cc94915ad44e05a16c5aee |
Close
Hashes for skyworker_dev_electricity_price_random-0.1.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 80c2fc1c3b2da076ebaf2988f187bfc2573480690dadc2f331b1a57f3c7ebe79 |
|
MD5 | 9a4cec8e0f7d507bd13156788bc5482b |
|
BLAKE2b-256 | 7d7b9ca2b4a946f086e2501a3a027ea67860ead44afabde5cc1cdff1d7e54f5f |