zipcode-features 0.1.5__tar.gz → 0.1.6__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {zipcode_features-0.1.5 → zipcode_features-0.1.6}/PKG-INFO +1 -1
- {zipcode_features-0.1.5 → zipcode_features-0.1.6}/pyproject.toml +1 -1
- {zipcode_features-0.1.5 → zipcode_features-0.1.6}/setup.py +1 -1
- {zipcode_features-0.1.5 → zipcode_features-0.1.6}/src/zipcode_features/__init__.py +3 -2
- zipcode_features-0.1.6/src/zipcode_features/data/cbsa_to_zip.csv +47860 -0
- {zipcode_features-0.1.5 → zipcode_features-0.1.6}/LICENSE +0 -0
- {zipcode_features-0.1.5 → zipcode_features-0.1.6}/README.md +0 -0
- {zipcode_features-0.1.5 → zipcode_features-0.1.6}/azure-pipelines.yml +0 -0
- {zipcode_features-0.1.5 → zipcode_features-0.1.6}/clean_install.sh +0 -0
- {zipcode_features-0.1.5 → zipcode_features-0.1.6}/requirements.txt +0 -0
- {zipcode_features-0.1.5 → zipcode_features-0.1.6}/src/zipcode_features/data/CBSA_ZIP_122025.csv +0 -0
- {zipcode_features-0.1.5 → zipcode_features-0.1.6}/src/zipcode_features/data/ZIP_COUNTY_122025.csv +0 -0
- {zipcode_features-0.1.5 → zipcode_features-0.1.6}/src/zipcode_features/data/bls_2025_quarter_four.csv +0 -0
- {zipcode_features-0.1.5 → zipcode_features-0.1.6}/src/zipcode_features/data/bls_2025_quarter_one.csv +0 -0
- {zipcode_features-0.1.5 → zipcode_features-0.1.6}/src/zipcode_features/data/bls_2025_quarter_three.csv +0 -0
- {zipcode_features-0.1.5 → zipcode_features-0.1.6}/src/zipcode_features/data/bls_2025_quarter_two.csv +0 -0
- {zipcode_features-0.1.5 → zipcode_features-0.1.6}/src/zipcode_features/data/cbsa_codes.json +0 -0
- {zipcode_features-0.1.5 → zipcode_features-0.1.6}/uv.lock +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: zipcode-features
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.6
|
|
4
4
|
Summary: A Python package to process and extract features from zipcode data.
|
|
5
5
|
Project-URL: Homepage, https://github.com/EricSchles/zipcode_features
|
|
6
6
|
Author-email: Eric Schles <your.email@example.com>
|
|
@@ -10,7 +10,7 @@ README = (HERE / "README.md").read_text()
|
|
|
10
10
|
# This call to setup() does all the work
|
|
11
11
|
setup(
|
|
12
12
|
name="zipcode_features",
|
|
13
|
-
version="0.1.
|
|
13
|
+
version="0.1.6",
|
|
14
14
|
description="A tool to get features based on census data from zipcodes",
|
|
15
15
|
long_description=README,
|
|
16
16
|
long_description_content_type="text/markdown",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
__version__ = '0.1.
|
|
1
|
+
__version__ = '0.1.4'
|
|
2
2
|
|
|
3
3
|
import zipcodes
|
|
4
4
|
from zipcode3.search import SearchEngine
|
|
@@ -165,9 +165,10 @@ def _get_zip_to_cbsa_code() -> dict:
|
|
|
165
165
|
mapping is of the form:
|
|
166
166
|
{"zip code": "cbsa code"}
|
|
167
167
|
"""
|
|
168
|
-
with resources.path("zipcode_features.data", "
|
|
168
|
+
with resources.path("zipcode_features.data", "cbsa_to_zip.csv") as csv_path:
|
|
169
169
|
df = pd.read_csv(csv_path, dtype={'ZIP': str, "CBSA": str})
|
|
170
170
|
df = correct_code(df, "ZIP")
|
|
171
|
+
df = correct_code(df, "CBSA")
|
|
171
172
|
mapping = df.set_index('ZIP')['CBSA'].to_dict()
|
|
172
173
|
return partial(map_zip_to_cbsa, mapping)
|
|
173
174
|
|