Skip to main content

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.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mobts-0.2.1.tar.gz (23.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mobts-0.2.1-py3-none-any.whl (28.7 kB view details)

Uploaded Python 3

File details

Details for the file mobts-0.2.1.tar.gz.

File metadata

  • Download URL: mobts-0.2.1.tar.gz
  • Upload date:
  • Size: 23.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.12.3

File hashes

Hashes for mobts-0.2.1.tar.gz
Algorithm Hash digest
SHA256 fc6745cbc3f726eec5718fed2d9f74ce496b69bd4099eff401a17a78561800c6
MD5 e703e64915821746652f1418ac49658c
BLAKE2b-256 69d9bcf3edba9cb92033ea05940b6948d777c2f51ed29822e68db9d42546a8f1

See more details on using hashes here.

File details

Details for the file mobts-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: mobts-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 28.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.12.3

File hashes

Hashes for mobts-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1e0caff14487a61bc6d10ca7528f170d158a6ea1dd3008419fd8349d1d539005
MD5 f7079fbf1ba332c41a0a7f8a180bf0ca
BLAKE2b-256 a9a6e498b13bcda210a6045dd70962417fbd17213a9fdaf294a9e475170571fc

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.2.1 This release

2 files

0.2.0

2 files

0.1.7

2 files

0.1.6

2 files

0.1.5

2 files

0.1.4

2 files

0.1.2

2 files

0.1.1

2 files

0.1.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page