fix: small update
Browse files- README.md +2 -2
- data/home_value_forecasts/Metro_zhvf_growth_uc_sfrcondo_tier_0.33_0.67_month.csv +0 -3
- data/home_value_forecasts/Metro_zhvf_growth_uc_sfrcondo_tier_0.33_0.67_sm_sa_month.csv +0 -3
- data/home_value_forecasts/Zip_zhvf_growth_uc_sfrcondo_tier_0.33_0.67_month.csv +0 -3
- data/home_value_forecasts/Zip_zhvf_growth_uc_sfrcondo_tier_0.33_0.67_sm_sa_month.csv +0 -3
- data/{new_constructions → new_construction}/Metro_new_con_median_sale_price_per_sqft_uc_condo_month.csv +0 -0
- data/{new_constructions → new_construction}/Metro_new_con_median_sale_price_per_sqft_uc_sfr_month.csv +0 -0
- data/{new_constructions → new_construction}/Metro_new_con_median_sale_price_per_sqft_uc_sfrcondo_month.csv +0 -0
- data/{new_constructions → new_construction}/Metro_new_con_median_sale_price_uc_condo_month.csv +0 -0
- data/{new_constructions → new_construction}/Metro_new_con_median_sale_price_uc_sfr_month.csv +0 -0
- data/{new_constructions → new_construction}/Metro_new_con_median_sale_price_uc_sfrcondo_month.csv +0 -0
- data/{new_constructions → new_construction}/Metro_new_con_sales_count_raw_uc_condo_month.csv +0 -0
- data/{new_constructions → new_construction}/Metro_new_con_sales_count_raw_uc_sfr_month.csv +0 -0
- data/{new_constructions → new_construction}/Metro_new_con_sales_count_raw_uc_sfrcondo_month.csv +0 -0
- processed/home_value_forecasts/final.jsonl +0 -3
- processed/home_value_forecasts/final1.jsonl +0 -3
- processed/{new_constructions → new_construction}/final1.jsonl +0 -0
- processors/home_value_forecasts.ipynb +1 -1
- processors/{new_constructions.ipynb → new_construction.ipynb} +1 -1
- tester.ipynb +3 -3
- zillow.py +6 -6
README.md
CHANGED
|
@@ -21,12 +21,12 @@ This dataset contains several configs produced based on files available at https
|
|
| 21 |
supported configs:
|
| 22 |
<!-- list each with a short description (1 sentence) -->
|
| 23 |
- [`home_values`](https://huggingface.co/datasets/misikoff/zillow#home-values): Zillow Home Value Index (ZHVI) for all homes, mid-tier, bottom-tier, and top-tier homes.
|
| 24 |
-
- [`
|
| 25 |
- [`rentals`](https://huggingface.co/datasets/misikoff/zillow#rentals): Zillow Observed Rent Index (ZORI) for all homes, mid-tier, bottom-tier, and top-tier homes.
|
| 26 |
- [`for_sale_listings`](https://huggingface.co/datasets/misikoff/zillow#for-sale-listings): Median listing price, new listings, and new pending listings.
|
| 27 |
- [`sales`](https://huggingface.co/datasets/misikoff/zillow#sales): Median sale price, median sale price per square foot, and sales count.
|
| 28 |
- [`days_on_market`](https://huggingface.co/datasets/misikoff/zillow#days-on-market): Days to pending, days to close, share of listings with a price cut, and price cuts.
|
| 29 |
-
- [`
|
| 30 |
|
| 31 |
## HOME VALUES
|
| 32 |
|
|
|
|
| 21 |
supported configs:
|
| 22 |
<!-- list each with a short description (1 sentence) -->
|
| 23 |
- [`home_values`](https://huggingface.co/datasets/misikoff/zillow#home-values): Zillow Home Value Index (ZHVI) for all homes, mid-tier, bottom-tier, and top-tier homes.
|
| 24 |
+
- [`home_values_forecasts`](https://huggingface.co/datasets/misikoff/zillow#home-value-forecasts): Zillow Home Value Forecast (ZHVF) for all homes, mid-tier, bottom-tier, and top-tier homes.
|
| 25 |
- [`rentals`](https://huggingface.co/datasets/misikoff/zillow#rentals): Zillow Observed Rent Index (ZORI) for all homes, mid-tier, bottom-tier, and top-tier homes.
|
| 26 |
- [`for_sale_listings`](https://huggingface.co/datasets/misikoff/zillow#for-sale-listings): Median listing price, new listings, and new pending listings.
|
| 27 |
- [`sales`](https://huggingface.co/datasets/misikoff/zillow#sales): Median sale price, median sale price per square foot, and sales count.
|
| 28 |
- [`days_on_market`](https://huggingface.co/datasets/misikoff/zillow#days-on-market): Days to pending, days to close, share of listings with a price cut, and price cuts.
|
| 29 |
+
- [`new_construction`](https://huggingface.co/datasets/misikoff/zillow#new-construction): Median sale price, median sale price per square foot, and sales count.
|
| 30 |
|
| 31 |
## HOME VALUES
|
| 32 |
|
data/home_value_forecasts/Metro_zhvf_growth_uc_sfrcondo_tier_0.33_0.67_month.csv
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:601b00d42493eb75cf786e52ca8591443200b4554bed1ec6c9125c5c18d1c009
|
| 3 |
-
size 52228
|
|
|
|
|
|
|
|
|
|
|
|
data/home_value_forecasts/Metro_zhvf_growth_uc_sfrcondo_tier_0.33_0.67_sm_sa_month.csv
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:4f50beb1308aaf672a37dc0d620fdc23afcddfeed12391e61031755f0b3f4333
|
| 3 |
-
size 51552
|
|
|
|
|
|
|
|
|
|
|
|
data/home_value_forecasts/Zip_zhvf_growth_uc_sfrcondo_tier_0.33_0.67_month.csv
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:7f06e8e0a4ed7ed6359c68b3f143f387093f4baf58e655d7c37a6785394495cb
|
| 3 |
-
size 3165256
|
|
|
|
|
|
|
|
|
|
|
|
data/home_value_forecasts/Zip_zhvf_growth_uc_sfrcondo_tier_0.33_0.67_sm_sa_month.csv
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:f6d51d40fa47803aee2e2141e5654b86c6a83a9eb998f0e8b81d659074b9a166
|
| 3 |
-
size 2039552
|
|
|
|
|
|
|
|
|
|
|
|
data/{new_constructions → new_construction}/Metro_new_con_median_sale_price_per_sqft_uc_condo_month.csv
RENAMED
|
File without changes
|
data/{new_constructions → new_construction}/Metro_new_con_median_sale_price_per_sqft_uc_sfr_month.csv
RENAMED
|
File without changes
|
data/{new_constructions → new_construction}/Metro_new_con_median_sale_price_per_sqft_uc_sfrcondo_month.csv
RENAMED
|
File without changes
|
data/{new_constructions → new_construction}/Metro_new_con_median_sale_price_uc_condo_month.csv
RENAMED
|
File without changes
|
data/{new_constructions → new_construction}/Metro_new_con_median_sale_price_uc_sfr_month.csv
RENAMED
|
File without changes
|
data/{new_constructions → new_construction}/Metro_new_con_median_sale_price_uc_sfrcondo_month.csv
RENAMED
|
File without changes
|
data/{new_constructions → new_construction}/Metro_new_con_sales_count_raw_uc_condo_month.csv
RENAMED
|
File without changes
|
data/{new_constructions → new_construction}/Metro_new_con_sales_count_raw_uc_sfr_month.csv
RENAMED
|
File without changes
|
data/{new_constructions → new_construction}/Metro_new_con_sales_count_raw_uc_sfrcondo_month.csv
RENAMED
|
File without changes
|
processed/home_value_forecasts/final.jsonl
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:f0557666842cd52409b8f1509e1402270d649ddb9371f9992007422a807d29fa
|
| 3 |
-
size 8185465
|
|
|
|
|
|
|
|
|
|
|
|
processed/home_value_forecasts/final1.jsonl
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:03947d319dfc30298597964938d8c7f8220da8dbbb0752f26227ee63d33e6541
|
| 3 |
-
size 8311837
|
|
|
|
|
|
|
|
|
|
|
|
processed/{new_constructions → new_construction}/final1.jsonl
RENAMED
|
File without changes
|
processors/home_value_forecasts.ipynb
CHANGED
|
@@ -18,7 +18,7 @@
|
|
| 18 |
"source": [
|
| 19 |
"DATA_DIR = \"../data/\"\n",
|
| 20 |
"PROCESSED_DIR = \"../processed/\"\n",
|
| 21 |
-
"FACET_DIR = \"
|
| 22 |
"FULL_DATA_DIR_PATH = os.path.join(DATA_DIR, FACET_DIR)\n",
|
| 23 |
"FULL_PROCESSED_DIR_PATH = os.path.join(PROCESSED_DIR, FACET_DIR)"
|
| 24 |
]
|
|
|
|
| 18 |
"source": [
|
| 19 |
"DATA_DIR = \"../data/\"\n",
|
| 20 |
"PROCESSED_DIR = \"../processed/\"\n",
|
| 21 |
+
"FACET_DIR = \"home_values_forecasts/\"\n",
|
| 22 |
"FULL_DATA_DIR_PATH = os.path.join(DATA_DIR, FACET_DIR)\n",
|
| 23 |
"FULL_PROCESSED_DIR_PATH = os.path.join(PROCESSED_DIR, FACET_DIR)"
|
| 24 |
]
|
processors/{new_constructions.ipynb → new_construction.ipynb}
RENAMED
|
@@ -18,7 +18,7 @@
|
|
| 18 |
"source": [
|
| 19 |
"DATA_DIR = \"../data\"\n",
|
| 20 |
"PROCESSED_DIR = \"../processed/\"\n",
|
| 21 |
-
"FACET_DIR = \"
|
| 22 |
"FULL_DATA_DIR_PATH = os.path.join(DATA_DIR, FACET_DIR)\n",
|
| 23 |
"FULL_PROCESSED_DIR_PATH = os.path.join(PROCESSED_DIR, FACET_DIR)"
|
| 24 |
]
|
|
|
|
| 18 |
"source": [
|
| 19 |
"DATA_DIR = \"../data\"\n",
|
| 20 |
"PROCESSED_DIR = \"../processed/\"\n",
|
| 21 |
+
"FACET_DIR = \"new_construction/\"\n",
|
| 22 |
"FULL_DATA_DIR_PATH = os.path.join(DATA_DIR, FACET_DIR)\n",
|
| 23 |
"FULL_PROCESSED_DIR_PATH = os.path.join(PROCESSED_DIR, FACET_DIR)"
|
| 24 |
]
|
tester.ipynb
CHANGED
|
@@ -20,7 +20,7 @@
|
|
| 20 |
"name": "stdout",
|
| 21 |
"output_type": "stream",
|
| 22 |
"text": [
|
| 23 |
-
"
|
| 24 |
"new_constructions\n",
|
| 25 |
"for_sale_listings\n"
|
| 26 |
]
|
|
@@ -95,8 +95,8 @@
|
|
| 95 |
],
|
| 96 |
"source": [
|
| 97 |
"configs = [\n",
|
| 98 |
-
" \"
|
| 99 |
-
" \"
|
| 100 |
" \"for_sale_listings\",\n",
|
| 101 |
" \"rentals\",\n",
|
| 102 |
" \"sales\",\n",
|
|
|
|
| 20 |
"name": "stdout",
|
| 21 |
"output_type": "stream",
|
| 22 |
"text": [
|
| 23 |
+
"home_values_forecasts\n",
|
| 24 |
"new_constructions\n",
|
| 25 |
"for_sale_listings\n"
|
| 26 |
]
|
|
|
|
| 95 |
],
|
| 96 |
"source": [
|
| 97 |
"configs = [\n",
|
| 98 |
+
" \"home_values_forecasts\",\n",
|
| 99 |
+
" \"new_construction\",\n",
|
| 100 |
" \"for_sale_listings\",\n",
|
| 101 |
" \"rentals\",\n",
|
| 102 |
" \"sales\",\n",
|
zillow.py
CHANGED
|
@@ -50,12 +50,12 @@ class Zillow(datasets.GeneratorBasedBuilder):
|
|
| 50 |
|
| 51 |
BUILDER_CONFIGS = [
|
| 52 |
datasets.BuilderConfig(
|
| 53 |
-
name="
|
| 54 |
version=VERSION,
|
| 55 |
description="This part of my dataset covers a first domain",
|
| 56 |
),
|
| 57 |
datasets.BuilderConfig(
|
| 58 |
-
name="
|
| 59 |
version=VERSION,
|
| 60 |
description="This part of my dataset covers a second domain",
|
| 61 |
),
|
|
@@ -89,7 +89,7 @@ class Zillow(datasets.GeneratorBasedBuilder):
|
|
| 89 |
DEFAULT_CONFIG_NAME = ""
|
| 90 |
|
| 91 |
def _info(self):
|
| 92 |
-
if self.config.name == "
|
| 93 |
features = datasets.Features(
|
| 94 |
{
|
| 95 |
"Region ID": datasets.Value(dtype="string", id="Region ID"),
|
|
@@ -121,7 +121,7 @@ class Zillow(datasets.GeneratorBasedBuilder):
|
|
| 121 |
),
|
| 122 |
}
|
| 123 |
)
|
| 124 |
-
elif self.config.name == "
|
| 125 |
features = datasets.Features(
|
| 126 |
{
|
| 127 |
"Region ID": datasets.Value(dtype="string", id="Region ID"),
|
|
@@ -343,7 +343,7 @@ class Zillow(datasets.GeneratorBasedBuilder):
|
|
| 343 |
with open(filepath, encoding="utf-8") as f:
|
| 344 |
for key, row in enumerate(f):
|
| 345 |
data = json.loads(row)
|
| 346 |
-
if self.config.name == "
|
| 347 |
yield key, {
|
| 348 |
"Region ID": data["Region ID"],
|
| 349 |
"Size Rank": data["Size Rank"],
|
|
@@ -369,7 +369,7 @@ class Zillow(datasets.GeneratorBasedBuilder):
|
|
| 369 |
],
|
| 370 |
"Year Over Year % (Raw)": data["Year Over Year % (Raw)"],
|
| 371 |
}
|
| 372 |
-
elif self.config.name == "
|
| 373 |
yield key, {
|
| 374 |
"Region ID": data["Region ID"],
|
| 375 |
"Size Rank": data["Size Rank"],
|
|
|
|
| 50 |
|
| 51 |
BUILDER_CONFIGS = [
|
| 52 |
datasets.BuilderConfig(
|
| 53 |
+
name="home_values_forecasts",
|
| 54 |
version=VERSION,
|
| 55 |
description="This part of my dataset covers a first domain",
|
| 56 |
),
|
| 57 |
datasets.BuilderConfig(
|
| 58 |
+
name="new_construction",
|
| 59 |
version=VERSION,
|
| 60 |
description="This part of my dataset covers a second domain",
|
| 61 |
),
|
|
|
|
| 89 |
DEFAULT_CONFIG_NAME = ""
|
| 90 |
|
| 91 |
def _info(self):
|
| 92 |
+
if self.config.name == "home_values_forecasts":
|
| 93 |
features = datasets.Features(
|
| 94 |
{
|
| 95 |
"Region ID": datasets.Value(dtype="string", id="Region ID"),
|
|
|
|
| 121 |
),
|
| 122 |
}
|
| 123 |
)
|
| 124 |
+
elif self.config.name == "new_construction":
|
| 125 |
features = datasets.Features(
|
| 126 |
{
|
| 127 |
"Region ID": datasets.Value(dtype="string", id="Region ID"),
|
|
|
|
| 343 |
with open(filepath, encoding="utf-8") as f:
|
| 344 |
for key, row in enumerate(f):
|
| 345 |
data = json.loads(row)
|
| 346 |
+
if self.config.name == "home_values_forecasts":
|
| 347 |
yield key, {
|
| 348 |
"Region ID": data["Region ID"],
|
| 349 |
"Size Rank": data["Size Rank"],
|
|
|
|
| 369 |
],
|
| 370 |
"Year Over Year % (Raw)": data["Year Over Year % (Raw)"],
|
| 371 |
}
|
| 372 |
+
elif self.config.name == "new_construction":
|
| 373 |
yield key, {
|
| 374 |
"Region ID": data["Region ID"],
|
| 375 |
"Size Rank": data["Size Rank"],
|