zipcode-features 0.1.1__tar.gz → 0.1.3__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.1 → zipcode_features-0.1.3}/PKG-INFO +1 -1
- {zipcode_features-0.1.1 → zipcode_features-0.1.3}/pyproject.toml +1 -1
- {zipcode_features-0.1.1 → zipcode_features-0.1.3}/setup.py +1 -1
- {zipcode_features-0.1.1 → zipcode_features-0.1.3}/src/zipcode_features/__init__.py +4 -7
- {zipcode_features-0.1.1 → zipcode_features-0.1.3}/uv.lock +1 -1
- {zipcode_features-0.1.1 → zipcode_features-0.1.3}/LICENSE +0 -0
- {zipcode_features-0.1.1 → zipcode_features-0.1.3}/README.md +0 -0
- {zipcode_features-0.1.1 → zipcode_features-0.1.3}/azure-pipelines.yml +0 -0
- {zipcode_features-0.1.1 → zipcode_features-0.1.3}/clean_install.sh +0 -0
- {zipcode_features-0.1.1 → zipcode_features-0.1.3}/requirements.txt +0 -0
- {zipcode_features-0.1.1 → zipcode_features-0.1.3}/src/zipcode_features/data/CBSA_ZIP_122025.csv +0 -0
- {zipcode_features-0.1.1 → zipcode_features-0.1.3}/src/zipcode_features/data/ZIP_COUNTY_122025.csv +0 -0
- {zipcode_features-0.1.1 → zipcode_features-0.1.3}/src/zipcode_features/data/bls_2025_quarter_four.csv +0 -0
- {zipcode_features-0.1.1 → zipcode_features-0.1.3}/src/zipcode_features/data/bls_2025_quarter_one.csv +0 -0
- {zipcode_features-0.1.1 → zipcode_features-0.1.3}/src/zipcode_features/data/bls_2025_quarter_three.csv +0 -0
- {zipcode_features-0.1.1 → zipcode_features-0.1.3}/src/zipcode_features/data/bls_2025_quarter_two.csv +0 -0
- {zipcode_features-0.1.1 → zipcode_features-0.1.3}/src/zipcode_features/data/cbsa_codes.json +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.3
|
|
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.3",
|
|
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.3'
|
|
2
2
|
|
|
3
3
|
import zipcodes
|
|
4
4
|
from zipcode3.search import SearchEngine
|
|
@@ -170,12 +170,9 @@ def _get_cbsa_code_to_cbsa_name() -> dict:
|
|
|
170
170
|
"""
|
|
171
171
|
with resources.path("zipcode_features.data", "cbsa_codes.json") as json_path:
|
|
172
172
|
code_to_name = json.load(open(json_path))
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
df["name"] = df["name"].str.replace(" -", "-")
|
|
177
|
-
df["name"] = df["name"].str.split().str.join(' ')
|
|
178
|
-
code_to_name = df.set_index('code')['name'].to_dict()
|
|
173
|
+
for code in code_to_name:
|
|
174
|
+
value = code_to_name[code].replace(" -", "-")
|
|
175
|
+
code_to_name[code] = " ".join([elem for elem in value.split(" ") if elem != ''])
|
|
179
176
|
return code_to_name
|
|
180
177
|
|
|
181
178
|
def _get_zip_to_fips_code() -> dict:
|
|
@@ -734,7 +734,7 @@ wheels = [
|
|
|
734
734
|
|
|
735
735
|
[[package]]
|
|
736
736
|
name = "zipcode-features"
|
|
737
|
-
version = "0.
|
|
737
|
+
version = "0.1.2"
|
|
738
738
|
source = { editable = "." }
|
|
739
739
|
dependencies = [
|
|
740
740
|
{ name = "numpy", version = "2.2.6", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.11'" },
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{zipcode_features-0.1.1 → zipcode_features-0.1.3}/src/zipcode_features/data/CBSA_ZIP_122025.csv
RENAMED
|
File without changes
|
{zipcode_features-0.1.1 → zipcode_features-0.1.3}/src/zipcode_features/data/ZIP_COUNTY_122025.csv
RENAMED
|
File without changes
|
|
File without changes
|
{zipcode_features-0.1.1 → zipcode_features-0.1.3}/src/zipcode_features/data/bls_2025_quarter_one.csv
RENAMED
|
File without changes
|
|
File without changes
|
{zipcode_features-0.1.1 → zipcode_features-0.1.3}/src/zipcode_features/data/bls_2025_quarter_two.csv
RENAMED
|
File without changes
|
|
File without changes
|