GPS/position calculation accessor for pandas DataFrames.
Project description
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
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pandas-x-0.0.4.tar.gz.
File metadata
- Download URL: pandas-x-0.0.4.tar.gz
- Upload date:
- Size: 9.3 kB
- Tags: Source
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fb44972212b4865ebd55e378b1f0a1b58b2da8c6a9f2006b677f040e85822533
|
|
| MD5 |
50e886ebe67321a7fa7ebcf7e0f92fc4
|
|
| BLAKE2b-256 |
255749cd5d10b702debbff26a0706f16976862dff3be468937049e83378809ab
|
File details
Details for the file pandas_x-0.0.4-py3-none-any.whl.
File metadata
- Download URL: pandas_x-0.0.4-py3-none-any.whl
- Upload date:
- Size: 10.4 kB
- Tags: Python 3
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
28b6a137eed8cf3166352b992149a40ac068409c04d19eff3737bec8503a231d
|
|
| MD5 |
c911587859f7eb3e7682d06cf95986e8
|
|
| BLAKE2b-256 |
52640e6dc1c728089c5c5ad70eae4522e8e7394b0f33e6e9e369020770c5845f
|