{ "cells": [ { "cell_type": "code", "execution_count": 2, "metadata": {}, "outputs": [], "source": [ "import pandas as pd\n", "import os" ] }, { "cell_type": "code", "execution_count": 3, "metadata": {}, "outputs": [], "source": [ "DATA_DIR = \"../data\"\n", "PROCESSED_DIR = \"../processed/\"\n", "FACET_DIR = \"sales/\"\n", "FULL_DATA_DIR_PATH = os.path.join(DATA_DIR, FACET_DIR)\n", "FULL_PROCESSED_DIR_PATH = os.path.join(PROCESSED_DIR, FACET_DIR)" ] }, { "cell_type": "code", "execution_count": 5, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "processing Metro_mean_sale_to_list_uc_sfrcondo_sm_month.csv\n", "processing Metro_median_sale_to_list_uc_sfrcondo_week.csv\n", "processing Metro_median_sale_price_uc_sfr_week.csv\n", "processing Metro_pct_sold_below_list_uc_sfrcondo_sm_month.csv\n", "processing Metro_median_sale_price_uc_sfr_sm_sa_week.csv\n", "processing Metro_pct_sold_below_list_uc_sfrcondo_month.csv\n", "processing Metro_median_sale_price_uc_sfrcondo_sm_week.csv\n", "processing Metro_pct_sold_below_list_uc_sfrcondo_sm_week.csv\n", "processing Metro_median_sale_price_uc_sfr_month.csv\n", "processing Metro_median_sale_to_list_uc_sfrcondo_sm_month.csv\n", "processing Metro_pct_sold_above_list_uc_sfrcondo_month.csv\n", "processing Metro_median_sale_to_list_uc_sfrcondo_sm_week.csv\n", "processing Metro_median_sale_price_uc_sfrcondo_sm_sa_month.csv\n", "processing Metro_sales_count_now_uc_sfrcondo_month.csv\n", "processing Metro_pct_sold_above_list_uc_sfrcondo_week.csv\n", "processing Metro_mean_sale_to_list_uc_sfrcondo_sm_week.csv\n", "processing Metro_median_sale_price_uc_sfrcondo_sm_month.csv\n", "processing Metro_mean_sale_to_list_uc_sfrcondo_week.csv\n", "processing Metro_median_sale_price_uc_sfr_sm_month.csv\n", "processing Metro_median_sale_to_list_uc_sfrcondo_month.csv\n", "processing Metro_median_sale_price_uc_sfrcondo_sm_sa_week.csv\n", "processing Metro_pct_sold_below_list_uc_sfrcondo_week.csv\n", "processing Metro_median_sale_price_uc_sfrcondo_week.csv\n", "processing Metro_mean_sale_to_list_uc_sfrcondo_month.csv\n", "processing Metro_pct_sold_above_list_uc_sfrcondo_sm_week.csv\n", "processing Metro_median_sale_price_uc_sfr_sm_week.csv\n", "processing Metro_median_sale_price_uc_sfrcondo_month.csv\n", "processing Metro_pct_sold_above_list_uc_sfrcondo_sm_month.csv\n" ] }, { "data": { "text/html": [ "
\n", " | RegionID | \n", "SizeRank | \n", "RegionName | \n", "RegionType | \n", "StateName | \n", "Home Type | \n", "Date | \n", "Mean Sale to List Ratio (Smoothed) | \n", "Median Sale to List Ratio | \n", "Median Sale Price | \n", "% Sold Below List (Smoothed) | \n", "Median Sale Price (Smoothed) (Seasonally Adjusted) | \n", "% Sold Below List | \n", "Median Sale Price (Smoothed) | \n", "Median Sale to List Ratio (Smoothed) | \n", "% Sold Above List | \n", "Nowcast | \n", "Mean Sale to List Ratio | \n", "% Sold Above List (Smoothed) | \n", "
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0 | \n", "102001 | \n", "0 | \n", "United States | \n", "country | \n", "NaN | \n", "SFR | \n", "2008-02-02 | \n", "NaN | \n", "NaN | \n", "172000.0 | \n", "NaN | \n", "NaN | \n", "NaN | \n", "NaN | \n", "NaN | \n", "NaN | \n", "NaN | \n", "NaN | \n", "NaN | \n", "
1 | \n", "102001 | \n", "0 | \n", "United States | \n", "country | \n", "NaN | \n", "SFR | \n", "2008-02-09 | \n", "NaN | \n", "NaN | \n", "165400.0 | \n", "NaN | \n", "NaN | \n", "NaN | \n", "NaN | \n", "NaN | \n", "NaN | \n", "NaN | \n", "NaN | \n", "NaN | \n", "
2 | \n", "102001 | \n", "0 | \n", "United States | \n", "country | \n", "NaN | \n", "SFR | \n", "2008-02-16 | \n", "NaN | \n", "NaN | \n", "168000.0 | \n", "NaN | \n", "NaN | \n", "NaN | \n", "NaN | \n", "NaN | \n", "NaN | \n", "NaN | \n", "NaN | \n", "NaN | \n", "
3 | \n", "102001 | \n", "0 | \n", "United States | \n", "country | \n", "NaN | \n", "SFR | \n", "2008-02-23 | \n", "NaN | \n", "NaN | \n", "165000.0 | \n", "NaN | \n", "NaN | \n", "NaN | \n", "167600.0 | \n", "NaN | \n", "NaN | \n", "NaN | \n", "NaN | \n", "NaN | \n", "
4 | \n", "102001 | \n", "0 | \n", "United States | \n", "country | \n", "NaN | \n", "SFR | \n", "2008-02-29 | \n", "NaN | \n", "NaN | \n", "NaN | \n", "NaN | \n", "NaN | \n", "NaN | \n", "NaN | \n", "NaN | \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", "... | \n", "... | \n", "... | \n", "
504603 | \n", "845167 | \n", "296 | \n", "Ottawa, IL | \n", "msa | \n", "IL | \n", "all homes | \n", "2023-07-31 | \n", "0.976219 | \n", "NaN | \n", "NaN | \n", "0.554969 | \n", "127574.0 | \n", "0.491379 | \n", "133500.0 | \n", "0.985172 | \n", "0.312332 | \n", "NaN | \n", "0.979227 | \n", "0.312332 | \n", "
504604 | \n", "845167 | \n", "296 | \n", "Ottawa, IL | \n", "msa | \n", "IL | \n", "all homes | \n", "2023-08-31 | \n", "0.971893 | \n", "NaN | \n", "NaN | \n", "0.541090 | \n", "125089.0 | \n", "0.602041 | \n", "131833.0 | \n", "0.987383 | \n", "0.294778 | \n", "NaN | \n", "0.959261 | \n", "0.294778 | \n", "
504605 | \n", "845167 | \n", "296 | \n", "Ottawa, IL | \n", "msa | \n", "IL | \n", "all homes | \n", "2023-09-30 | \n", "0.968028 | \n", "NaN | \n", "NaN | \n", "0.531140 | \n", "127199.0 | \n", "0.500000 | \n", "132333.0 | \n", "0.991072 | \n", "0.285128 | \n", "NaN | \n", "0.965595 | \n", "0.285128 | \n", "
504606 | \n", "845167 | \n", "296 | \n", "Ottawa, IL | \n", "msa | \n", "IL | \n", "all homes | \n", "2023-10-31 | \n", "0.962485 | \n", "NaN | \n", "NaN | \n", "0.558836 | \n", "131159.0 | \n", "0.574468 | \n", "134667.0 | \n", "0.985657 | \n", "0.272350 | \n", "NaN | \n", "0.962599 | \n", "0.272350 | \n", "
504607 | \n", "845167 | \n", "296 | \n", "Ottawa, IL | \n", "msa | \n", "IL | \n", "all homes | \n", "2023-11-30 | \n", "0.967126 | \n", "NaN | \n", "NaN | \n", "0.539226 | \n", "129291.0 | \n", "0.543210 | \n", "131000.0 | \n", "0.990886 | \n", "0.280538 | \n", "NaN | \n", "0.973184 | \n", "0.280538 | \n", "
504608 rows × 19 columns
\n", "\n", " | Region ID | \n", "Size Rank | \n", "Region | \n", "Region Type | \n", "State | \n", "Home Type | \n", "Date | \n", "Mean Sale to List Ratio (Smoothed) | \n", "Median Sale to List Ratio | \n", "Median Sale Price | \n", "% Sold Below List (Smoothed) | \n", "Median Sale Price (Smoothed) (Seasonally Adjusted) | \n", "% Sold Below List | \n", "Median Sale Price (Smoothed) | \n", "Median Sale to List Ratio (Smoothed) | \n", "% Sold Above List | \n", "Nowcast | \n", "Mean Sale to List Ratio | \n", "% Sold Above List (Smoothed) | \n", "
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0 | \n", "102001 | \n", "0 | \n", "United States | \n", "country | \n", "NaN | \n", "SFR | \n", "2008-02-02 | \n", "NaN | \n", "NaN | \n", "172000.0 | \n", "NaN | \n", "NaN | \n", "NaN | \n", "NaN | \n", "NaN | \n", "NaN | \n", "NaN | \n", "NaN | \n", "NaN | \n", "
1 | \n", "102001 | \n", "0 | \n", "United States | \n", "country | \n", "NaN | \n", "SFR | \n", "2008-02-09 | \n", "NaN | \n", "NaN | \n", "165400.0 | \n", "NaN | \n", "NaN | \n", "NaN | \n", "NaN | \n", "NaN | \n", "NaN | \n", "NaN | \n", "NaN | \n", "NaN | \n", "
2 | \n", "102001 | \n", "0 | \n", "United States | \n", "country | \n", "NaN | \n", "SFR | \n", "2008-02-16 | \n", "NaN | \n", "NaN | \n", "168000.0 | \n", "NaN | \n", "NaN | \n", "NaN | \n", "NaN | \n", "NaN | \n", "NaN | \n", "NaN | \n", "NaN | \n", "NaN | \n", "
3 | \n", "102001 | \n", "0 | \n", "United States | \n", "country | \n", "NaN | \n", "SFR | \n", "2008-02-23 | \n", "NaN | \n", "NaN | \n", "165000.0 | \n", "NaN | \n", "NaN | \n", "NaN | \n", "167600.0 | \n", "NaN | \n", "NaN | \n", "NaN | \n", "NaN | \n", "NaN | \n", "
4 | \n", "102001 | \n", "0 | \n", "United States | \n", "country | \n", "NaN | \n", "SFR | \n", "2008-02-29 | \n", "NaN | \n", "NaN | \n", "NaN | \n", "NaN | \n", "NaN | \n", "NaN | \n", "NaN | \n", "NaN | \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", "... | \n", "... | \n", "... | \n", "
504603 | \n", "845167 | \n", "296 | \n", "Ottawa, IL | \n", "msa | \n", "IL | \n", "all homes | \n", "2023-07-31 | \n", "0.976219 | \n", "NaN | \n", "NaN | \n", "0.554969 | \n", "127574.0 | \n", "0.491379 | \n", "133500.0 | \n", "0.985172 | \n", "0.312332 | \n", "NaN | \n", "0.979227 | \n", "0.312332 | \n", "
504604 | \n", "845167 | \n", "296 | \n", "Ottawa, IL | \n", "msa | \n", "IL | \n", "all homes | \n", "2023-08-31 | \n", "0.971893 | \n", "NaN | \n", "NaN | \n", "0.541090 | \n", "125089.0 | \n", "0.602041 | \n", "131833.0 | \n", "0.987383 | \n", "0.294778 | \n", "NaN | \n", "0.959261 | \n", "0.294778 | \n", "
504605 | \n", "845167 | \n", "296 | \n", "Ottawa, IL | \n", "msa | \n", "IL | \n", "all homes | \n", "2023-09-30 | \n", "0.968028 | \n", "NaN | \n", "NaN | \n", "0.531140 | \n", "127199.0 | \n", "0.500000 | \n", "132333.0 | \n", "0.991072 | \n", "0.285128 | \n", "NaN | \n", "0.965595 | \n", "0.285128 | \n", "
504606 | \n", "845167 | \n", "296 | \n", "Ottawa, IL | \n", "msa | \n", "IL | \n", "all homes | \n", "2023-10-31 | \n", "0.962485 | \n", "NaN | \n", "NaN | \n", "0.558836 | \n", "131159.0 | \n", "0.574468 | \n", "134667.0 | \n", "0.985657 | \n", "0.272350 | \n", "NaN | \n", "0.962599 | \n", "0.272350 | \n", "
504607 | \n", "845167 | \n", "296 | \n", "Ottawa, IL | \n", "msa | \n", "IL | \n", "all homes | \n", "2023-11-30 | \n", "0.967126 | \n", "NaN | \n", "NaN | \n", "0.539226 | \n", "129291.0 | \n", "0.543210 | \n", "131000.0 | \n", "0.990886 | \n", "0.280538 | \n", "NaN | \n", "0.973184 | \n", "0.280538 | \n", "
504608 rows × 19 columns
\n", "