Skip to main content

pandas-x

GPS/position calculation accessor for pandas DataFrames.

Example Usage

pandas-x provides the .pos DataFrame accessor:

>>> import pandas as pd
>>> import pandas_x

>>> df = pd.DataFrame.from_dict({
...   'lat': [40.0, 40.1, 40.3],
...   'lon': [-105.0, -105.0, -105.0]
... })

>>> df['displacement'] = df.pos.ds_from_xy()
>>> df['displacement']
0        0.000000
1    11119.492664
2    22238.985329
dtype: float64

>>> df.pos.s_from_ds()
0        0.000000
1    11119.492664
2    33358.477993
dtype: float64

Dependencies and Installation

Pandas and NumPy are required.

The package is available on PyPi and can be installed with pip:

$ pip install pandas-x

License

License

This project is licensed under the MIT License. See LICENSE file for details.

Documentation

The official documentation is hosted at readthedocs: https://pandas-x.readthedocs.io/en/stable/

Current Activities

  • Implement an algorithm to smooth GPS position and speed data. Most GPS-enabled activity trackers filter their speed and distance timeseries to remove measurement noise. I want to try and figure out how they do it, then replicate their techniques, and compare the smoothed position data.

Metadata

Release files for pandas-x 0.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pandas-x 0.0.4
File Size Uploaded Provenance Actions
pandas-x-0.0.4.tar.gz 9.3 kB Without provenance Details for pandas-x-0.0.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pandas-x 0.0.4
File Interpreter ABI Platform Actions
pandas_x-0.0.4-py3-none-any.whl Python 3 none any Details for pandas_x-0.0.4-py3-none-any.whl

Total release size: 19.7 kB

Release files / pandas-x-0.0.4.tar.gz

Download URL pandas-x-0.0.4.tar.gz
Size 9.3 kB
Tags Source
SHA-256 checksum
How to use checksums
fb44972212b4865ebd55e378b1f0a1b58b2da8c6a9f2006b677f040e85822533
BLAKE2b-256 checksum
How to use checksums
255749cd5d10b702debbff26a0706f16976862dff3be468937049e83378809ab
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.3.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.7.5

Release files / pandas_x-0.0.4-py3-none-any.whl

Download URL pandas_x-0.0.4-py3-none-any.whl
Size 10.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
28b6a137eed8cf3166352b992149a40ac068409c04d19eff3737bec8503a231d
BLAKE2b-256 checksum
How to use checksums
52640e6dc1c728089c5c5ad70eae4522e8e7394b0f33e6e9e369020770c5845f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.3.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.7.5

Security for pandas-x 0.0.4

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.

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