mobts
Python package for preprocessing and imputing urban mobility time series data.
Designed for transport datasets such as bike counts, traffic loops, and station-based observations.
Documentation
Full documentation, including a user guide, configuration reference, and API reference, is available at:
https://mobidec.github.io/mobts/index.html
What this package does
- Clean time series data:
- Detects measurement errors
- Flags and removes them
- Imputes missing/invalid data based on a multi-tier method
Installation
pip install mobts
Example of running the code
from mobts import preprocess, impute
# Step 1: clean raw data
pp = preprocess()
df_clean = pp.run(
df_raw=df,
counter_col=counter_col,
timestamp_col=timestamp_col,
count_col=count_col,
)
# Step 2: impute missing values
imp = impute()
df_imputed = imp.run(
df=df_clean,
counter_col=counter_col,
timestamp_col=timestamp_col,
count_col=count_col,
)
See the Quickstart page for a complete walkthrough.
Functional examples
A full, illustrated example is available in the documentation:
License
This project is licensed under the MIT License, which means it is freely usable for personal and commercial purposes. The MIT License is one of the most permissive open source licenses. It allows you to do almost anything with the source code, as long as you retain the original license notice and copyright information when redistributing the software or substantial portions of it. This license comes without any warranties, so the software is provided "as is." For more details, please refer to the included LICENSE file.
Metadata
Release files for mobts 0.2.1
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 |
|---|---|---|---|---|
| mobts-0.2.1.tar.gz | 23.4 kB | Without provenance | Details for mobts-0.2.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mobts-0.2.1-py3-none-any.whl | Python 3 | none | any | Details for mobts-0.2.1-py3-none-any.whl |
Total release size: 52.1 kB
Release files / mobts-0.2.1.tar.gz
| Download URL | mobts-0.2.1.tar.gz |
|---|---|
| Size | 23.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fc6745cbc3f726eec5718fed2d9f74ce496b69bd4099eff401a17a78561800c6
|
|
BLAKE2b-256 checksum How to use checksums |
69d9bcf3edba9cb92033ea05940b6948d777c2f51ed29822e68db9d42546a8f1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.3
|
Release files / mobts-0.2.1-py3-none-any.whl
| Download URL | mobts-0.2.1-py3-none-any.whl |
|---|---|
| Size | 28.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1e0caff14487a61bc6d10ca7528f170d158a6ea1dd3008419fd8349d1d539005
|
|
BLAKE2b-256 checksum How to use checksums |
a9a6e498b13bcda210a6045dd70962417fbd17213a9fdaf294a9e475170571fc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.3
|
Security for mobts 0.2.1
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.