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.0.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.0-py3-none-any.whl (28.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mobts-0.2.0.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.0.tar.gz
Algorithm Hash digest
SHA256 91a94e866e0b4933a7c3c737aa47f71b9764cdf838b405c23c48175ecddc43e2
MD5 425959e0f71bf0f80935e22d8d2c39a5
BLAKE2b-256 e05b24694b8b53b61e86cd63dd6468d0b9bd901328a5b32368b4f9fe18e3cd11

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mobts-0.2.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4a32cde8eca96b3b9f0560586eb4ec7ec8a8806c29a5474632519e9558250e7a
MD5 5f6212c68caa82bf56cbe22b9f836ae4
BLAKE2b-256 f34f110c38d25ea50a6db84aee66561f1b3192c72f4364374acd6fad1ca23dcc

See more details on using hashes here.

Release history Release notifications | RSS feed

0.2.1

2 files

This release

0.2.0 This release

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