A package for aggregating and merging US geographic data frames.
Project description
USAggregate
USAggregate is a Python package for aggregating and merging US geographic data frames.
Installation
You can install the package using pip:
pip install USAggregate
Below is an example of package usage.
import pandas as pd
from USAggregate.usaggregate import usaggregate
data_city = pd.DataFrame({
'city': ['Albany', 'Albany', 'Buffalo', 'Buffalo'],
'state': ['NY', 'NY', 'NY', 'NY'],
'value': [1, 2, 3, 4],
'year': [2017, 2018, 2017, 2018]
})
data_county = pd.DataFrame({
'county': ['Albany', 'Albany', 'Erie', 'Erie'],
'state': ['NY', 'NY', 'NY', 'NY'],
'value': [5, 6, 7, 8],
'year': [2017, 2018, 2017, 2018]
})
# Example usage of usaggregate function
result = usaggregate([data_city, data_county], level='state')
print(result)
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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
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
USAggregate-0.1.2-py3-none-any.whl
(325.4 kB
view details)
File details
Details for the file USAggregate-0.1.2-py3-none-any.whl.
File metadata
- Download URL: USAggregate-0.1.2-py3-none-any.whl
- Upload date:
- Size: 325.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cbd1238a44e54d6e5a44a76c7c72f0ea846a9768d55df55a4862dc32f654c8af
|
|
| MD5 |
2d0a84ef2d11a207063b444ab4a5c16c
|
|
| BLAKE2b-256 |
8a228e2abbb54209664a5d1a90ece3975247d0821999f4b9abee2089c611d546
|