Extention to the python lib 'mdfreader', for finding/parsing/preprocessing the data from .dat/.mdf files
Project description
mdfreader读取MDF/DAT文件后的常用操作
my_lib.py
封装常用函数,用于机器学习预处理。
1. parse_mdf(filename, columns)
mdfreader常用操作
- filename : dat/mdf文件名
- columns : 需要读取的通道名/缩写
merge_to_pd : 将目标列拼接成带时间戳的DataFrame
keyword_merge_to_pd : 用变量关键字查询并拼接成带时间戳的DataFrame
signal_list_merge_to_pd:参考已知信号列表提取出本文件中存在的信号并拼接成带时间戳的DataFrame
2. pd_parse(content, label)
DataFrame常用操作
- content : DataFrame
- label : 目标标签
trace_back : 添加特征前序时间序列
add_MeanVar :添加特征前序时间的均值和方差等一系列前序时间内的特征
resample : 用采样时间内的均值重采样
initialize : 初始化,为每一行添加上一时刻或上n时刻的标签值
add_col : 添加时间序列新特征
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
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 mdfreader-helper-0.0.1.tar.gz.
File metadata
- Download URL: mdfreader-helper-0.0.1.tar.gz
- Upload date:
- Size: 6.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.24.0 setuptools/51.1.1 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.7.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ed0d970c331109a4fdf10175ec760809d09ab1b76d2f5b981bcf29ce815055c8
|
|
| MD5 |
cc5fe4793f8b6cc8704a133be9c11b35
|
|
| BLAKE2b-256 |
12f714e366ff1af4fe4b5c20984a60afb1a505c7aa113fd1a88c7800cc901f5f
|
File details
Details for the file mdfreader_helper-0.0.1-py3-none-any.whl.
File metadata
- Download URL: mdfreader_helper-0.0.1-py3-none-any.whl
- Upload date:
- Size: 17.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.24.0 setuptools/51.1.1 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.7.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e599da2a8e54e320e37131616b7e80dac14bda20a3ceda37c7f72947241cad0e
|
|
| MD5 |
3f24afddd94c645cec319c6f7926a4cc
|
|
| BLAKE2b-256 |
5ea65f44da5cd85b55afe02f4c3ee7b95f609b004825e810dde2de259026dde3
|