Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

usaggregate-1.0.0.tar.gz (321.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

USAggregate-1.0.0-py3-none-any.whl (325.4 kB view details)

Uploaded Python 3

File details

Details for the file usaggregate-1.0.0.tar.gz.

File metadata

  • Download URL: usaggregate-1.0.0.tar.gz
  • Upload date:
  • Size: 321.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for usaggregate-1.0.0.tar.gz
Algorithm Hash digest
SHA256 35d53c4507f939672a695cd346892571bdf8f7dc481528508be9f7cf342e2e90
MD5 ee297d603668f217cdf2e7982118c826
BLAKE2b-256 5c7512ab223905e4af018aeccd3a8bf8d189f6ff3faafe1906d0f6200d3639a8

See more details on using hashes here.

File details

Details for the file USAggregate-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: USAggregate-1.0.0-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

Hashes for USAggregate-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 998297ac83f0496347959290c004bbdfa22ff93980c2347cde71afe380b5b88c
MD5 b202ada44c94ef777f237368b15601cb
BLAKE2b-256 be6021fad9ea4f871fb39ed8890069bd579e18ef2f27734398db6bba2f5f8b3b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page