traindiagnostics
A Python library for unevenly-spaced time series analysis in train diagnostics. Build on top of the magnificent ticts library.
Installation
pip install traindiagnostics
Want to try it out first without installing? With binder you can test out the code in an online jupyter notebook.
Usage
import traindiagnostics as td
ts = td.TimeSeries({
'2019-01-01 09:00:00': 0,
'2019-01-01 09:00:05': 1,
'2019-01-01 09:01:02': 0,
'2019-01-01 09:05:09': 1,
'2019-01-01 09:05:16': 0,
'2019-01-01 09:11:01': 1,
'2019-01-01 09:12:59': 0,
})
not_in_index = '2019-01-01 00:05:00'
assert ts[not_in_index] == 1 # step function, previous value
ts['2019-01-01 00:04:00'] = 10
assert ts[not_in_index] == 10
assert ts + ts == 2 * ts
ts_evenly_spaced = ts.sample(freq='1Min')
# From ticts to pandas, and the other way around
assert ts.equals(
ts.to_dataframe().to_ticts(),
)
Contributing
Missing some features? create an issue or pull request!
Metadata
Release files for traindiagnostics 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| traindiagnostics-0.3.0.tar.gz | 18.0 kB | Without provenance | Details for traindiagnostics-0.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| traindiagnostics-0.3.0-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details for traindiagnostics-0.3.0-py2.py3-none-any.whl |
Total release size: 37.9 kB
Release files / traindiagnostics-0.3.0.tar.gz
| Download URL | traindiagnostics-0.3.0.tar.gz |
|---|---|
| Size | 18.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7bd161b816b46475831222ecd3774ccd7f739bbfd962f57e1065152bcf90858e
|
|
BLAKE2b-256 checksum How to use checksums |
cb053acb1175242063596cc8dcb3debf33a88179fb9fddcbbaa0ebbafb2ecce6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0.post20191030 requests-toolbelt/0.9.1 tqdm/4.38.0 CPython/3.7.5
|
Release files / traindiagnostics-0.3.0-py2.py3-none-any.whl
| Download URL | traindiagnostics-0.3.0-py2.py3-none-any.whl |
|---|---|
| Size | 19.9 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
9420f00e97401b0201a339d504804932a6daed5280617dc3244faece3ad089d9
|
|
BLAKE2b-256 checksum How to use checksums |
c24c901002761f568c8e39fa86d430bfecdec325550dc48856ec60ff7560296a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0.post20191030 requests-toolbelt/0.9.1 tqdm/4.38.0 CPython/3.7.5
|
Security for traindiagnostics 0.3.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.