Metadata-Version: 2.1
Name: USAggregate
Version: 1.0.0
Summary: A package for aggregating and merging US geographic data frames.
Home-page: https://github.com/ethand05hi/USAggregate
Author: Ethan Doshi
Author-email: ethandoshi00@gmail.com
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: pandas

# USAggregate

USAggregate is a Python package for aggregating and merging US geographic data frames.

## Installation

You can install the package using pip:

```{sh}
pip install USAggregate
```

Below is an example of package usage.

```{python}
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)

```

