A data processor for data in influxDB
Project description
influxdb-data-processor
A data processor for data in influxDB.
Developed by Chai Wen Xuan 2021
Uses:
- To fill in missing value cause by random error from data collector
- To produce fixed time sampling range data
Processing CSV file
import pandas as pd
from influxdbDataProcessor.processor import processCsvData
df = processCsvData()
User will be required to input:
- Token
- influxDb url
- Organization
- Bucket name
- CSV file location
- Sampling frequency (1 day: '1d', 1hour: '1h', 1 minute: '1t', 1 second: '1s')
- Data range (1 day: '1d', 1hour: '1h', 1 minute: '1m', 1 second: '1s')
CSV file format:
- Contains two column ("Measurement", "Field")
Processing array data
import pandas as pd
from influxdbDataProcessor.processor import processArrayData
measurementArr = ["Air Conditioner"]
fieldArr = ["Temperature"]
df = processArrayData(measurementArr,fieldArr)
User will be required to input:
- Token
- influxDb url
- Organization
- Bucket name
- Sampling frequency (1 day: '1d', 1hour: '1h', 1 minute: '1t', 1 second: '1s')
- Data range (1 day: '1d', 1hour: '1h', 1 minute: '1m', 1 second: '1s')
Ready input by user before calling function
import pandas as pd
from influxdbDataProcessor.processor import processArrayData
df = processData(token,url,org,bucket,samplerange,length,mea,field)
User will be required to input:
- Token
- influxDb url
- Organization
- Bucket name
- Sampling frequency (1 day: '1d', 1hour: '1h', 1 minute: '1t', 1 second: '1s')
- Data range (1 day: '1d', 1hour: '1h', 1 minute: '1m', 1 second: '1s')
- MeasurementArr
- FieldArr
Project details
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file influxdb-data-processor-0.0.4.tar.gz.
File metadata
- Download URL: influxdb-data-processor-0.0.4.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dd76fd62c8ab4e35cded3d6f07e3f3a4573f96279ad17f1ccfc21c9078cdfd40
|
|
| MD5 |
5e7809ad9353aad5eabd7874589845a2
|
|
| BLAKE2b-256 |
92cbfd67016845188846212e92d4f9838ca692f2501c76ec8cb2a1db32e4d638
|
File details
Details for the file influxdb_data_processor-0.0.4-py3-none-any.whl.
File metadata
- Download URL: influxdb_data_processor-0.0.4-py3-none-any.whl
- Upload date:
- Size: 4.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0982b4587a6c6bcbb00203af38472bf3a32553ffda328fa242d0c59855cd7996
|
|
| MD5 |
9d40098ae6eab0bc7477dd28334004dd
|
|
| BLAKE2b-256 |
1b0473d9312db6045f629259fad6b0e7e8c610c41dbb82c662e3ea4383f5df82
|