Discover and explore top open-source AI tools and projects—updated daily.
Python library for human mobility analysis
Top 45.4% on SourcePulse
scikit-mobility is a Python library designed for comprehensive human mobility analysis. It provides specialized data structures, TrajDataFrame
and FlowDataFrame
, for representing and manipulating trajectory and origin-destination flow data, respectively. The library caters to researchers and data scientists working with diverse mobility datasets, enabling them to extract mobility metrics, generate synthetic trajectories and flows, and assess privacy risks.
How It Works
The library leverages custom pandas extensions, TrajDataFrame
and FlowDataFrame
, to structure mobility data. TrajDataFrame
requires latitude, longitude, and datetime, with optional user and trajectory IDs, facilitating individual movement analysis. FlowDataFrame
represents origin-destination flows and is associated with a spatial tessellation (a GeoDataFrame defining geographic regions). This approach allows for efficient data handling and the application of various mobility models and analytical techniques.
Quick Start & Requirements
conda install -c conda-forge scikit-mobility
. Pip installation is possible but may lead to dependency issues, especially on Windows/Mac.Highlighted Details
Maintenance & Community
The project is actively maintained, with contributions welcome. Further community engagement details are not explicitly provided in the README.
Licensing & Compatibility
The README does not explicitly state the license. Compatibility for commercial use or closed-source linking is not specified.
Limitations & Caveats
The README strongly advises against pip installation due to potential dependency issues, particularly on Windows and macOS. Some mobility measures require the TrajDataFrame
to be sorted by datetime.
1 year ago
Inactive