{ "cells": [ { "cell_type": "code", "execution_count": 22, "metadata": {}, "outputs": [], "source": [ "import pandas as pd\n", "import os" ] }, { "cell_type": "code", "execution_count": 23, "metadata": {}, "outputs": [], "source": [ "DATA_DIR = 'data/'\n", "PROCESSED_DIR = 'processed/'\n", "FACET_DIR = 'home_value_forecasts/'\n", "FULL_DATA_DIR_PATH = DATA_DIR + FACET_DIR\n", "FULL_PROCESSED_DIR_PATH = PROCESSED_DIR + FACET_DIR" ] }, { "cell_type": "code", "execution_count": 24, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "processing Zip_zhvf_growth_uc_sfrcondo_tier_0.33_0.67_sm_sa_month.csv\n", "processing Metro_zhvf_growth_uc_sfrcondo_tier_0.33_0.67_sm_sa_month.csv\n", "processing Zip_zhvf_growth_uc_sfrcondo_tier_0.33_0.67_month.csv\n", "processing Metro_zhvf_growth_uc_sfrcondo_tier_0.33_0.67_month.csv\n" ] }, { "data": { "text/html": [ "
\n", " | RegionID | \n", "SizeRank | \n", "RegionName | \n", "RegionType | \n", "StateName | \n", "BaseDate | \n", "Month Over Month % (Smoothed) | \n", "Quarter Over Quarter % (Smoothed) | \n", "Year Over Year % (Smoothed) | \n", "Month Over Month % (Raw) | \n", "Quarter Over Quarter % (Raw) | \n", "Year Over Year % (Raw) | \n", "State | \n", "City | \n", "Metro | \n", "CountyName | \n", "
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0 | \n", "102001 | \n", "0 | \n", "United States | \n", "country | \n", "NaN | \n", "2023-12-31 | \n", "0.1 | \n", "0.4 | \n", "3.5 | \n", "-0.5 | \n", "0.4 | \n", "3.7 | \n", "NaN | \n", "NaN | \n", "NaN | \n", "NaN | \n", "
1 | \n", "394913 | \n", "1 | \n", "New York, NY | \n", "msa | \n", "NY | \n", "2023-12-31 | \n", "0.2 | \n", "0.2 | \n", "1.0 | \n", "-0.7 | \n", "-0.9 | \n", "0.6 | \n", "NaN | \n", "NaN | \n", "NaN | \n", "NaN | \n", "
2 | \n", "753899 | \n", "2 | \n", "Los Angeles, CA | \n", "msa | \n", "CA | \n", "2023-12-31 | \n", "-0.1 | \n", "-1.8 | \n", "0.7 | \n", "-0.6 | \n", "0.8 | \n", "1.4 | \n", "NaN | \n", "NaN | \n", "NaN | \n", "NaN | \n", "
3 | \n", "394463 | \n", "3 | \n", "Chicago, IL | \n", "msa | \n", "IL | \n", "2023-12-31 | \n", "0.1 | \n", "0.4 | \n", "1.6 | \n", "-0.8 | \n", "-0.2 | \n", "1.4 | \n", "NaN | \n", "NaN | \n", "NaN | \n", "NaN | \n", "
4 | \n", "394514 | \n", "4 | \n", "Dallas, TX | \n", "msa | \n", "TX | \n", "2023-12-31 | \n", "-0.1 | \n", "0.0 | \n", "3.2 | \n", "-0.6 | \n", "0.9 | \n", "3.6 | \n", "NaN | \n", "NaN | \n", "NaN | \n", "NaN | \n", "
... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "
20162 | \n", "82097 | \n", "39992 | \n", "55087 | \n", "zip | \n", "MN | \n", "2023-12-31 | \n", "0.1 | \n", "0.7 | \n", "1.8 | \n", "-0.9 | \n", "-0.2 | \n", "2.6 | \n", "MN | \n", "Warsaw | \n", "Faribault-Northfield, MN | \n", "Rice County | \n", "
20163 | \n", "85325 | \n", "39992 | \n", "62093 | \n", "zip | \n", "IL | \n", "2023-12-31 | \n", "0.9 | \n", "0.4 | \n", "3.7 | \n", "-0.7 | \n", "0.4 | \n", "2.3 | \n", "IL | \n", "NaN | \n", "St. Louis, MO-IL | \n", "Macoupin County | \n", "
20164 | \n", "92085 | \n", "39992 | \n", "77661 | \n", "zip | \n", "TX | \n", "2023-12-31 | \n", "-0.5 | \n", "0.3 | \n", "-0.6 | \n", "-0.4 | \n", "0.0 | \n", "1.2 | \n", "TX | \n", "NaN | \n", "Houston-The Woodlands-Sugar Land, TX | \n", "Chambers County | \n", "
20165 | \n", "92811 | \n", "39992 | \n", "79078 | \n", "zip | \n", "TX | \n", "2023-12-31 | \n", "-1.2 | \n", "-1.1 | \n", "-3.1 | \n", "-1.7 | \n", "-2.6 | \n", "-1.9 | \n", "TX | \n", "NaN | \n", "Borger, TX | \n", "Hutchinson County | \n", "
20166 | \n", "98183 | \n", "39992 | \n", "95419 | \n", "zip | \n", "CA | \n", "2023-12-31 | \n", "-0.5 | \n", "-0.2 | \n", "0.0 | \n", "-0.5 | \n", "0.6 | \n", "-0.4 | \n", "CA | \n", "Camp Meeker | \n", "Santa Rosa-Petaluma, CA | \n", "Sonoma County | \n", "
21062 rows × 16 columns
\n", "\n", " | RegionID | \n", "RegionName | \n", "RegionType | \n", "SizeRank | \n", "State | \n", "City | \n", "Metro | \n", "CountyName | \n", "BaseDate | \n", "Month Over Month % (Smoothed) | \n", "Quarter Over Quarter % (Smoothed) | \n", "Year Over Year % (Smoothed) | \n", "Month Over Month % (Raw) | \n", "Quarter Over Quarter % (Raw) | \n", "Year Over Year % (Raw) | \n", "
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0 | \n", "102001 | \n", "United States | \n", "country | \n", "0 | \n", "NaN | \n", "NaN | \n", "NaN | \n", "NaN | \n", "2023-12-31 | \n", "0.1 | \n", "0.4 | \n", "3.5 | \n", "-0.5 | \n", "0.4 | \n", "3.7 | \n", "
1 | \n", "394913 | \n", "New York, NY | \n", "msa | \n", "1 | \n", "NY | \n", "New York | \n", "New York, NY | \n", "NaN | \n", "2023-12-31 | \n", "0.2 | \n", "0.2 | \n", "1.0 | \n", "-0.7 | \n", "-0.9 | \n", "0.6 | \n", "
2 | \n", "753899 | \n", "Los Angeles, CA | \n", "msa | \n", "2 | \n", "CA | \n", "Los Angeles | \n", "Los Angeles, CA | \n", "NaN | \n", "2023-12-31 | \n", "-0.1 | \n", "-1.8 | \n", "0.7 | \n", "-0.6 | \n", "0.8 | \n", "1.4 | \n", "
3 | \n", "394463 | \n", "Chicago, IL | \n", "msa | \n", "3 | \n", "IL | \n", "Chicago | \n", "Chicago, IL | \n", "NaN | \n", "2023-12-31 | \n", "0.1 | \n", "0.4 | \n", "1.6 | \n", "-0.8 | \n", "-0.2 | \n", "1.4 | \n", "
4 | \n", "394514 | \n", "Dallas, TX | \n", "msa | \n", "4 | \n", "TX | \n", "Dallas | \n", "Dallas, TX | \n", "NaN | \n", "2023-12-31 | \n", "-0.1 | \n", "0.0 | \n", "3.2 | \n", "-0.6 | \n", "0.9 | \n", "3.6 | \n", "
... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "
20162 | \n", "82097 | \n", "55087 | \n", "zip | \n", "39992 | \n", "MN | \n", "Warsaw | \n", "Faribault-Northfield, MN | \n", "Rice County | \n", "2023-12-31 | \n", "0.1 | \n", "0.7 | \n", "1.8 | \n", "-0.9 | \n", "-0.2 | \n", "2.6 | \n", "
20163 | \n", "85325 | \n", "62093 | \n", "zip | \n", "39992 | \n", "IL | \n", "NaN | \n", "St. Louis, MO-IL | \n", "Macoupin County | \n", "2023-12-31 | \n", "0.9 | \n", "0.4 | \n", "3.7 | \n", "-0.7 | \n", "0.4 | \n", "2.3 | \n", "
20164 | \n", "92085 | \n", "77661 | \n", "zip | \n", "39992 | \n", "TX | \n", "NaN | \n", "Houston-The Woodlands-Sugar Land, TX | \n", "Chambers County | \n", "2023-12-31 | \n", "-0.5 | \n", "0.3 | \n", "-0.6 | \n", "-0.4 | \n", "0.0 | \n", "1.2 | \n", "
20165 | \n", "92811 | \n", "79078 | \n", "zip | \n", "39992 | \n", "TX | \n", "NaN | \n", "Borger, TX | \n", "Hutchinson County | \n", "2023-12-31 | \n", "-1.2 | \n", "-1.1 | \n", "-3.1 | \n", "-1.7 | \n", "-2.6 | \n", "-1.9 | \n", "
20166 | \n", "98183 | \n", "95419 | \n", "zip | \n", "39992 | \n", "CA | \n", "Camp Meeker | \n", "Santa Rosa-Petaluma, CA | \n", "Sonoma County | \n", "2023-12-31 | \n", "-0.5 | \n", "-0.2 | \n", "0.0 | \n", "-0.5 | \n", "0.6 | \n", "-0.4 | \n", "
21062 rows × 15 columns
\n", "