{ "cells": [ { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [], "source": [ "import pandas as pd\n", "import os\n", "\n", "from helpers import get_data_path_for_config, get_combined_df, save_final_df_as_jsonl" ] }, { "cell_type": "code", "execution_count": 2, "metadata": {}, "outputs": [], "source": [ "CONFIG_NAME = \"home_values_forecasts\"" ] }, { "cell_type": "code", "execution_count": 3, "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", "State | \n", "City | \n", "Metro | \n", "CountyName | \n", "BaseDate | \n", "Month Over Month % (Smoothed) (Seasonally Adjusted) | \n", "Quarter Over Quarter % (Smoothed) (Seasonally Adjusted) | \n", "Year Over Year % (Smoothed) (Seasonally Adjusted) | \n", "Month Over Month % | \n", "Quarter Over Quarter % | \n", "Year Over Year % | \n", "
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0 | \n", "58001 | \n", "30490 | \n", "501 | \n", "zip | \n", "NY | \n", "NY | \n", "Holtsville | \n", "New York-Newark-Jersey City, NY-NJ-PA | \n", "Suffolk County | \n", "2023-12-31 | \n", "NaN | \n", "NaN | \n", "NaN | \n", "-0.7 | \n", "-0.9 | \n", "0.6 | \n", "
1 | \n", "58002 | \n", "30490 | \n", "544 | \n", "zip | \n", "NY | \n", "NY | \n", "Holtsville | \n", "New York-Newark-Jersey City, NY-NJ-PA | \n", "Suffolk County | \n", "2023-12-31 | \n", "NaN | \n", "NaN | \n", "NaN | \n", "-0.7 | \n", "-0.9 | \n", "0.6 | \n", "
2 | \n", "58196 | \n", "7440 | \n", "1001 | \n", "zip | \n", "MA | \n", "MA | \n", "Agawam | \n", "Springfield, MA | \n", "Hampden County | \n", "2023-12-31 | \n", "0.4 | \n", "0.9 | \n", "3.2 | \n", "-0.6 | \n", "0.0 | \n", "3.0 | \n", "
3 | \n", "58197 | \n", "3911 | \n", "1002 | \n", "zip | \n", "MA | \n", "MA | \n", "Amherst | \n", "Springfield, MA | \n", "Hampshire County | \n", "2023-12-31 | \n", "0.2 | \n", "0.7 | \n", "2.7 | \n", "-0.6 | \n", "0.0 | \n", "2.9 | \n", "
4 | \n", "58198 | \n", "8838 | \n", "1003 | \n", "zip | \n", "MA | \n", "MA | \n", "Amherst | \n", "Springfield, MA | \n", "Hampshire County | \n", "2023-12-31 | \n", "NaN | \n", "NaN | \n", "NaN | \n", "-0.7 | \n", "0.0 | \n", "3.4 | \n", "
... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "
31849 | \n", "827279 | \n", "7779 | \n", "72405 | \n", "zip | \n", "AR | \n", "AR | \n", "Jonesboro | \n", "Jonesboro, AR | \n", "Craighead County | \n", "2023-12-31 | \n", "NaN | \n", "NaN | \n", "NaN | \n", "-0.7 | \n", "0.0 | \n", "2.5 | \n", "
31850 | \n", "834213 | \n", "30490 | \n", "11437 | \n", "zip | \n", "NY | \n", "NY | \n", "New York | \n", "New York-Newark-Jersey City, NY-NJ-PA | \n", "Queens County | \n", "2023-12-31 | \n", "NaN | \n", "NaN | \n", "NaN | \n", "-0.7 | \n", "-0.9 | \n", "0.6 | \n", "
31851 | \n", "845914 | \n", "6361 | \n", "85288 | \n", "zip | \n", "AZ | \n", "AZ | \n", "Tempe | \n", "Phoenix-Mesa-Chandler, AZ | \n", "Maricopa County | \n", "2023-12-31 | \n", "NaN | \n", "NaN | \n", "NaN | \n", "-1.0 | \n", "0.0 | \n", "4.5 | \n", "
31852 | \n", "847854 | \n", "39992 | \n", "20598 | \n", "zip | \n", "VA | \n", "VA | \n", "Arlington | \n", "Washington-Arlington-Alexandria, DC-VA-MD-WV | \n", "Arlington County | \n", "2023-12-31 | \n", "NaN | \n", "NaN | \n", "NaN | \n", "-0.4 | \n", "0.9 | \n", "1.2 | \n", "
31853 | \n", "847855 | \n", "30490 | \n", "34249 | \n", "zip | \n", "FL | \n", "FL | \n", "Sarasota | \n", "North Port-Sarasota-Bradenton, FL | \n", "Sarasota County | \n", "2023-12-31 | \n", "NaN | \n", "NaN | \n", "NaN | \n", "-0.9 | \n", "-0.1 | \n", "5.4 | \n", "
31854 rows × 16 columns
\n", "\n", " | Region ID | \n", "Size Rank | \n", "Region | \n", "Region Type | \n", "State | \n", "City | \n", "Metro | \n", "County | \n", "Date | \n", "Month Over Month % (Smoothed) (Seasonally Adjusted) | \n", "Quarter Over Quarter % (Smoothed) (Seasonally Adjusted) | \n", "Year Over Year % (Smoothed) (Seasonally Adjusted) | \n", "Month Over Month % | \n", "Quarter Over Quarter % | \n", "Year Over Year % | \n", "
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0 | \n", "58001 | \n", "30490 | \n", "501 | \n", "zip | \n", "NY | \n", "Holtsville | \n", "New York-Newark-Jersey City, NY-NJ-PA | \n", "Suffolk County | \n", "2023-12-31 | \n", "NaN | \n", "NaN | \n", "NaN | \n", "-0.7 | \n", "-0.9 | \n", "0.6 | \n", "
1 | \n", "58002 | \n", "30490 | \n", "544 | \n", "zip | \n", "NY | \n", "Holtsville | \n", "New York-Newark-Jersey City, NY-NJ-PA | \n", "Suffolk County | \n", "2023-12-31 | \n", "NaN | \n", "NaN | \n", "NaN | \n", "-0.7 | \n", "-0.9 | \n", "0.6 | \n", "
2 | \n", "58196 | \n", "7440 | \n", "1001 | \n", "zip | \n", "MA | \n", "Agawam | \n", "Springfield, MA | \n", "Hampden County | \n", "2023-12-31 | \n", "0.4 | \n", "0.9 | \n", "3.2 | \n", "-0.6 | \n", "0.0 | \n", "3.0 | \n", "
3 | \n", "58197 | \n", "3911 | \n", "1002 | \n", "zip | \n", "MA | \n", "Amherst | \n", "Springfield, MA | \n", "Hampshire County | \n", "2023-12-31 | \n", "0.2 | \n", "0.7 | \n", "2.7 | \n", "-0.6 | \n", "0.0 | \n", "2.9 | \n", "
4 | \n", "58198 | \n", "8838 | \n", "1003 | \n", "zip | \n", "MA | \n", "Amherst | \n", "Springfield, MA | \n", "Hampshire County | \n", "2023-12-31 | \n", "NaN | \n", "NaN | \n", "NaN | \n", "-0.7 | \n", "0.0 | \n", "3.4 | \n", "
... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "
31849 | \n", "827279 | \n", "7779 | \n", "72405 | \n", "zip | \n", "AR | \n", "Jonesboro | \n", "Jonesboro, AR | \n", "Craighead County | \n", "2023-12-31 | \n", "NaN | \n", "NaN | \n", "NaN | \n", "-0.7 | \n", "0.0 | \n", "2.5 | \n", "
31850 | \n", "834213 | \n", "30490 | \n", "11437 | \n", "zip | \n", "NY | \n", "New York | \n", "New York-Newark-Jersey City, NY-NJ-PA | \n", "Queens County | \n", "2023-12-31 | \n", "NaN | \n", "NaN | \n", "NaN | \n", "-0.7 | \n", "-0.9 | \n", "0.6 | \n", "
31851 | \n", "845914 | \n", "6361 | \n", "85288 | \n", "zip | \n", "AZ | \n", "Tempe | \n", "Phoenix-Mesa-Chandler, AZ | \n", "Maricopa County | \n", "2023-12-31 | \n", "NaN | \n", "NaN | \n", "NaN | \n", "-1.0 | \n", "0.0 | \n", "4.5 | \n", "
31852 | \n", "847854 | \n", "39992 | \n", "20598 | \n", "zip | \n", "VA | \n", "Arlington | \n", "Washington-Arlington-Alexandria, DC-VA-MD-WV | \n", "Arlington County | \n", "2023-12-31 | \n", "NaN | \n", "NaN | \n", "NaN | \n", "-0.4 | \n", "0.9 | \n", "1.2 | \n", "
31853 | \n", "847855 | \n", "30490 | \n", "34249 | \n", "zip | \n", "FL | \n", "Sarasota | \n", "North Port-Sarasota-Bradenton, FL | \n", "Sarasota County | \n", "2023-12-31 | \n", "NaN | \n", "NaN | \n", "NaN | \n", "-0.9 | \n", "-0.1 | \n", "5.4 | \n", "
31854 rows × 15 columns
\n", "