zipcode-features 0.1.1__py3-none-any.whl → 0.1.2__py3-none-any.whl
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/__init__.py +4 -7
- {zipcode_features-0.1.1.dist-info → zipcode_features-0.1.2.dist-info}/METADATA +1 -1
- {zipcode_features-0.1.1.dist-info → zipcode_features-0.1.2.dist-info}/RECORD +5 -5
- {zipcode_features-0.1.1.dist-info → zipcode_features-0.1.2.dist-info}/WHEEL +0 -0
- {zipcode_features-0.1.1.dist-info → zipcode_features-0.1.2.dist-info}/licenses/LICENSE +0 -0
zipcode_features/__init__.py
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
__version__ = '0.1.
|
|
1
|
+
__version__ = '0.1.2'
|
|
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 x.split(" ") if elem != ''])
|
|
179
176
|
return code_to_name
|
|
180
177
|
|
|
181
178
|
def _get_zip_to_fips_code() -> dict:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: zipcode-features
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.2
|
|
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>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
zipcode_features/__init__.py,sha256=
|
|
1
|
+
zipcode_features/__init__.py,sha256=Vh0uHqn66SHhsCiIK6Sf9kY3de1JezHHdSLX9W8UCq4,10421
|
|
2
2
|
zipcode_features/data/CBSA_ZIP_122025.csv,sha256=K04cmFp6n-BnDNKBAVNlo9ZcISvNcCyi0pilx85M4uw,5184179
|
|
3
3
|
zipcode_features/data/ZIP_COUNTY_122025.csv,sha256=U15HG0Vy-KFgdTBHBib77-nyBnmze3YL7jgmdjRj8hg,3649183
|
|
4
4
|
zipcode_features/data/bls_2025_quarter_four.csv,sha256=K44BQUijfSKzaG1la7VpvGDa1mpoEKGRTDu9hjm0hrk,3715371
|
|
@@ -6,7 +6,7 @@ zipcode_features/data/bls_2025_quarter_one.csv,sha256=WrR9aRoqC4p0rVGmHIEV-ugLo4
|
|
|
6
6
|
zipcode_features/data/bls_2025_quarter_three.csv,sha256=FeACbqadlOOuQvnQNCgyOKke448X_bGUuHJV7g7OW3A,3709136
|
|
7
7
|
zipcode_features/data/bls_2025_quarter_two.csv,sha256=L_aIESbpSPViV4bGH82EvKLkBI_lf4BxGgoMe_wTrdc,3831843
|
|
8
8
|
zipcode_features/data/cbsa_codes.json,sha256=H33pk1-12IcJreOLK3OVXhhQ7JirSqNLcZTuoY5FTFM,10324
|
|
9
|
-
zipcode_features-0.1.
|
|
10
|
-
zipcode_features-0.1.
|
|
11
|
-
zipcode_features-0.1.
|
|
12
|
-
zipcode_features-0.1.
|
|
9
|
+
zipcode_features-0.1.2.dist-info/METADATA,sha256=D0gnFfKmSkavq8SWEPb2mHFf5nlJPv4gtkYr1Qy4YnI,5849
|
|
10
|
+
zipcode_features-0.1.2.dist-info/WHEEL,sha256=mffPy8wBnZQn2VnJUU5jE99KsxaSfiyMHV9Yt0aLVxs,87
|
|
11
|
+
zipcode_features-0.1.2.dist-info/licenses/LICENSE,sha256=HDbMJ7oItmxTn3jVtZFi6jUFAHovset5jzAPUderjOc,1073
|
|
12
|
+
zipcode_features-0.1.2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|