zipcode-features 0.0.1__py3-none-any.whl → 0.0.4__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 +11 -6
- {zipcode_features-0.0.1.dist-info → zipcode_features-0.0.4.dist-info}/METADATA +2 -1
- zipcode_features-0.0.4.dist-info/RECORD +6 -0
- zipcode_features-0.0.1.dist-info/RECORD +0 -6
- {zipcode_features-0.0.1.dist-info → zipcode_features-0.0.4.dist-info}/WHEEL +0 -0
- {zipcode_features-0.0.1.dist-info → zipcode_features-0.0.4.dist-info}/licenses/LICENSE +0 -0
- {zipcode_features-0.0.1.dist-info → zipcode_features-0.0.4.dist-info}/top_level.txt +0 -0
zipcode_features/__init__.py
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
__version__ = '0.0.
|
|
1
|
+
__version__ = '0.0.4'
|
|
2
2
|
|
|
3
3
|
import zipcodes
|
|
4
|
-
from
|
|
4
|
+
from zipcode3.search import SearchEngine
|
|
5
5
|
import pandas as pd
|
|
6
6
|
|
|
7
7
|
def us_get_demographics(state: str, city: str = None, zip_list: list = None) -> pd.DataFrame:
|
|
@@ -22,10 +22,15 @@ def us_get_demographics(state: str, city: str = None, zip_list: list = None) ->
|
|
|
22
22
|
https://github.com/EricSchles/uszipcode-project
|
|
23
23
|
"""
|
|
24
24
|
search = SearchEngine()
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
25
|
+
if city is None:
|
|
26
|
+
payload = {
|
|
27
|
+
"state": state
|
|
28
|
+
}
|
|
29
|
+
else:
|
|
30
|
+
payload = {
|
|
31
|
+
"state": state,
|
|
32
|
+
"city": city
|
|
33
|
+
}
|
|
29
34
|
if zip_list is None:
|
|
30
35
|
zipcode_and_demo = [
|
|
31
36
|
[zipcode["zip_code"], search.by_zipcode(zipcode["zip_code"])]
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: zipcode_features
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.4
|
|
4
4
|
Summary: A tool to get features based on census data from zipcodes
|
|
5
5
|
Home-page: https://github.com/EricSchles/zipcode_features
|
|
6
6
|
Author: Eric Schles
|
|
@@ -18,6 +18,7 @@ Description-Content-Type: text/markdown
|
|
|
18
18
|
License-File: LICENSE
|
|
19
19
|
Requires-Dist: zipcodes
|
|
20
20
|
Requires-Dist: pandas
|
|
21
|
+
Requires-Dist: zipcode3
|
|
21
22
|
Dynamic: author
|
|
22
23
|
Dynamic: author-email
|
|
23
24
|
Dynamic: classifier
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
zipcode_features/__init__.py,sha256=6TGvT3ZGnCYfpHO2fHIgINJq2_-jJ5MKMWPd7Ejt1go,1474
|
|
2
|
+
zipcode_features-0.0.4.dist-info/licenses/LICENSE,sha256=HDbMJ7oItmxTn3jVtZFi6jUFAHovset5jzAPUderjOc,1073
|
|
3
|
+
zipcode_features-0.0.4.dist-info/METADATA,sha256=BfMZ59JH4gBk_eEltkNkrR9_MvzQ58hopAr8HecQWvQ,1098
|
|
4
|
+
zipcode_features-0.0.4.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
5
|
+
zipcode_features-0.0.4.dist-info/top_level.txt,sha256=ijGAxdXHaO43tVlCj3Kn05dj-hkXAv1pXBEq1Yj8mt0,17
|
|
6
|
+
zipcode_features-0.0.4.dist-info/RECORD,,
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
zipcode_features/__init__.py,sha256=GUKDHZRe7xmU_Bwx9S_sXcjy1aEGSPs57t81oGuhnUM,1371
|
|
2
|
-
zipcode_features-0.0.1.dist-info/licenses/LICENSE,sha256=HDbMJ7oItmxTn3jVtZFi6jUFAHovset5jzAPUderjOc,1073
|
|
3
|
-
zipcode_features-0.0.1.dist-info/METADATA,sha256=2diJ-23lvr-oXqKzuJPbBCMXXgZ6ny-HiIM_PKlUdRg,1074
|
|
4
|
-
zipcode_features-0.0.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
5
|
-
zipcode_features-0.0.1.dist-info/top_level.txt,sha256=ijGAxdXHaO43tVlCj3Kn05dj-hkXAv1pXBEq1Yj8mt0,17
|
|
6
|
-
zipcode_features-0.0.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|