fix: cols for home values
Browse files
zillow.py
CHANGED
@@ -236,22 +236,18 @@ class Zillow(datasets.GeneratorBasedBuilder):
|
|
236 |
"State": datasets.Value(dtype="string", id="State"),
|
237 |
"Home Type": datasets.Value(dtype="string", id="Home Type"),
|
238 |
"Date": datasets.Value(dtype="string", id="Date"),
|
239 |
-
"Mid Tier ZHVI (Smoothed) (Seasonally Adjusted)": datasets.Value(
|
240 |
-
dtype="float32",
|
241 |
-
id="Mid Tier ZHVI (Smoothed) (Seasonally Adjusted)",
|
242 |
-
),
|
243 |
"Bottom Tier ZHVI (Smoothed) (Seasonally Adjusted)": datasets.Value(
|
244 |
dtype="float32",
|
245 |
id="Bottom Tier ZHVI (Smoothed) (Seasonally Adjusted)",
|
246 |
),
|
|
|
|
|
|
|
|
|
247 |
"Top Tier ZHVI (Smoothed) (Seasonally Adjusted)": datasets.Value(
|
248 |
dtype="float32",
|
249 |
id="Top Tier ZHVI (Smoothed) (Seasonally Adjusted)",
|
250 |
),
|
251 |
-
"ZHVI": datasets.Value(dtype="float32", id="ZHVI"),
|
252 |
-
"Mid Tier ZHVI": datasets.Value(
|
253 |
-
dtype="float32", id="Mid Tier ZHVI"
|
254 |
-
),
|
255 |
}
|
256 |
)
|
257 |
elif self.config.name == "days_on_market":
|
@@ -451,17 +447,15 @@ class Zillow(datasets.GeneratorBasedBuilder):
|
|
451 |
"State": data["State"],
|
452 |
"Home Type": data["Home Type"],
|
453 |
"Date": data["Date"],
|
454 |
-
"Mid Tier ZHVI (Smoothed) (Seasonally Adjusted)": data[
|
455 |
-
"Mid Tier ZHVI (Smoothed) (Seasonally Adjusted)"
|
456 |
-
],
|
457 |
"Bottom Tier ZHVI (Smoothed) (Seasonally Adjusted)": data[
|
458 |
"Bottom Tier ZHVI (Smoothed) (Seasonally Adjusted)"
|
459 |
],
|
|
|
|
|
|
|
460 |
"Top Tier ZHVI (Smoothed) (Seasonally Adjusted)": data[
|
461 |
"Top Tier ZHVI (Smoothed) (Seasonally Adjusted)"
|
462 |
],
|
463 |
-
"ZHVI": data["ZHVI"],
|
464 |
-
"Mid Tier ZHVI": data["Mid Tier ZHVI"],
|
465 |
}
|
466 |
elif self.config.name == "days_on_market":
|
467 |
yield key, {
|
|
|
236 |
"State": datasets.Value(dtype="string", id="State"),
|
237 |
"Home Type": datasets.Value(dtype="string", id="Home Type"),
|
238 |
"Date": datasets.Value(dtype="string", id="Date"),
|
|
|
|
|
|
|
|
|
239 |
"Bottom Tier ZHVI (Smoothed) (Seasonally Adjusted)": datasets.Value(
|
240 |
dtype="float32",
|
241 |
id="Bottom Tier ZHVI (Smoothed) (Seasonally Adjusted)",
|
242 |
),
|
243 |
+
"Mid Tier ZHVI (Smoothed) (Seasonally Adjusted)": datasets.Value(
|
244 |
+
dtype="float32",
|
245 |
+
id="Mid Tier ZHVI (Smoothed) (Seasonally Adjusted)",
|
246 |
+
),
|
247 |
"Top Tier ZHVI (Smoothed) (Seasonally Adjusted)": datasets.Value(
|
248 |
dtype="float32",
|
249 |
id="Top Tier ZHVI (Smoothed) (Seasonally Adjusted)",
|
250 |
),
|
|
|
|
|
|
|
|
|
251 |
}
|
252 |
)
|
253 |
elif self.config.name == "days_on_market":
|
|
|
447 |
"State": data["State"],
|
448 |
"Home Type": data["Home Type"],
|
449 |
"Date": data["Date"],
|
|
|
|
|
|
|
450 |
"Bottom Tier ZHVI (Smoothed) (Seasonally Adjusted)": data[
|
451 |
"Bottom Tier ZHVI (Smoothed) (Seasonally Adjusted)"
|
452 |
],
|
453 |
+
"Mid Tier ZHVI (Smoothed) (Seasonally Adjusted)": data[
|
454 |
+
"Mid Tier ZHVI (Smoothed) (Seasonally Adjusted)"
|
455 |
+
],
|
456 |
"Top Tier ZHVI (Smoothed) (Seasonally Adjusted)": data[
|
457 |
"Top Tier ZHVI (Smoothed) (Seasonally Adjusted)"
|
458 |
],
|
|
|
|
|
459 |
}
|
460 |
elif self.config.name == "days_on_market":
|
461 |
yield key, {
|