{ "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 = \"for_sale_listings/\"\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": 7, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "processing Metro_new_pending_uc_sfrcondo_sm_month.csv\n", "processing Metro_invt_fs_uc_sfrcondo_week.csv\n", "processing Metro_mlp_uc_sfrcondo_week.csv\n", "processing Metro_invt_fs_uc_sfr_month.csv\n", "processing Metro_mlp_uc_sfr_sm_month.csv\n", "processing Metro_new_pending_uc_sfrcondo_month.csv\n", "processing Metro_mlp_uc_sfrcondo_sm_week.csv\n", "processing Metro_invt_fs_uc_sfrcondo_month.csv\n", "processing Metro_mlp_uc_sfr_sm_week.csv\n", "processing Metro_mlp_uc_sfrcondo_month.csv\n", "processing Metro_new_pending_uc_sfrcondo_sm_week.csv\n", "processing Metro_invt_fs_uc_sfr_sm_week.csv\n", "processing Metro_invt_fs_uc_sfr_sm_month.csv\n", "processing Metro_mlp_uc_sfr_month.csv\n", "processing Metro_new_listings_uc_sfrcondo_week.csv\n", "processing Metro_mlp_uc_sfrcondo_sm_month.csv\n", "processing Metro_invt_fs_uc_sfrcondo_sm_week.csv\n", "processing Metro_new_listings_uc_sfrcondo_sm_week.csv\n", "processing Metro_new_listings_uc_sfrcondo_month.csv\n", "processing Metro_new_pending_uc_sfrcondo_week.csv\n", "processing Metro_invt_fs_uc_sfr_week.csv\n", "processing Metro_new_listings_uc_sfrcondo_sm_month.csv\n", "processing Metro_mlp_uc_sfr_week.csv\n", "processing Metro_invt_fs_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", "Median Listing Price | \n", "Median Listing Price (Smoothed) | \n", "New Listings | \n", "New Listings (Smoothed) | \n", "New Pending (Smoothed) | \n", "New Pending | \n", "
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0 | \n", "102001 | \n", "0 | \n", "United States | \n", "country | \n", "NaN | \n", "all homes | \n", "2018-01-06 | \n", "NaN | \n", "NaN | \n", "NaN | \n", "NaN | \n", "NaN | \n", "24766.0 | \n", "
1 | \n", "102001 | \n", "0 | \n", "United States | \n", "country | \n", "NaN | \n", "SFR | \n", "2018-01-13 | \n", "259000.0 | \n", "NaN | \n", "NaN | \n", "NaN | \n", "NaN | \n", "NaN | \n", "
2 | \n", "102001 | \n", "0 | \n", "United States | \n", "country | \n", "NaN | \n", "all homes | \n", "2018-01-13 | \n", "259900.0 | \n", "NaN | \n", "71177.0 | \n", "NaN | \n", "NaN | \n", "35229.0 | \n", "
3 | \n", "102001 | \n", "0 | \n", "United States | \n", "country | \n", "NaN | \n", "SFR | \n", "2018-01-20 | \n", "259900.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", "all homes | \n", "2018-01-20 | \n", "259900.0 | \n", "NaN | \n", "72625.0 | \n", "NaN | \n", "NaN | \n", "38281.0 | \n", "
... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "
2398144 | \n", "845172 | \n", "769 | \n", "Winfield, KS | \n", "msa | \n", "KS | \n", "all homes | \n", "2023-12-31 | \n", "NaN | \n", "136233.0 | \n", "NaN | \n", "28.0 | \n", "NaN | \n", "24.0 | \n", "
2398145 | \n", "845172 | \n", "769 | \n", "Winfield, KS | \n", "msa | \n", "KS | \n", "SFR | \n", "2024-01-06 | \n", "NaN | \n", "131088.0 | \n", "NaN | \n", "NaN | \n", "NaN | \n", "NaN | \n", "
2398146 | \n", "845172 | \n", "769 | \n", "Winfield, KS | \n", "msa | \n", "KS | \n", "SFR | \n", "2024-01-06 | \n", "135450.0 | \n", "NaN | \n", "NaN | \n", "NaN | \n", "NaN | \n", "NaN | \n", "
2398147 | \n", "845172 | \n", "769 | \n", "Winfield, KS | \n", "msa | \n", "KS | \n", "all homes | \n", "2024-01-06 | \n", "128000.0 | \n", "NaN | \n", "NaN | \n", "NaN | \n", "NaN | \n", "NaN | \n", "
2398148 | \n", "845172 | \n", "769 | \n", "Winfield, KS | \n", "msa | \n", "KS | \n", "all homes | \n", "2024-01-06 | \n", "NaN | \n", "121488.0 | \n", "NaN | \n", "NaN | \n", "NaN | \n", "NaN | \n", "
2398149 rows × 13 columns
\n", "\n", " | Region ID | \n", "Size Rank | \n", "Region | \n", "Region Type | \n", "State | \n", "Home Type | \n", "Date | \n", "Median Listing Price | \n", "Median Listing Price (Smoothed) | \n", "New Listings | \n", "New Listings (Smoothed) | \n", "New Pending (Smoothed) | \n", "New Pending | \n", "
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0 | \n", "102001 | \n", "0 | \n", "United States | \n", "country | \n", "NaN | \n", "all homes | \n", "2018-01-06 | \n", "NaN | \n", "NaN | \n", "NaN | \n", "NaN | \n", "NaN | \n", "24766.0 | \n", "
1 | \n", "102001 | \n", "0 | \n", "United States | \n", "country | \n", "NaN | \n", "SFR | \n", "2018-01-13 | \n", "259000.0 | \n", "NaN | \n", "NaN | \n", "NaN | \n", "NaN | \n", "NaN | \n", "
2 | \n", "102001 | \n", "0 | \n", "United States | \n", "country | \n", "NaN | \n", "all homes | \n", "2018-01-13 | \n", "259900.0 | \n", "NaN | \n", "71177.0 | \n", "NaN | \n", "NaN | \n", "35229.0 | \n", "
3 | \n", "102001 | \n", "0 | \n", "United States | \n", "country | \n", "NaN | \n", "SFR | \n", "2018-01-20 | \n", "259900.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", "all homes | \n", "2018-01-20 | \n", "259900.0 | \n", "NaN | \n", "72625.0 | \n", "NaN | \n", "NaN | \n", "38281.0 | \n", "
... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "
2398144 | \n", "845172 | \n", "769 | \n", "Winfield, KS | \n", "msa | \n", "KS | \n", "all homes | \n", "2023-12-31 | \n", "NaN | \n", "136233.0 | \n", "NaN | \n", "28.0 | \n", "NaN | \n", "24.0 | \n", "
2398145 | \n", "845172 | \n", "769 | \n", "Winfield, KS | \n", "msa | \n", "KS | \n", "SFR | \n", "2024-01-06 | \n", "NaN | \n", "131088.0 | \n", "NaN | \n", "NaN | \n", "NaN | \n", "NaN | \n", "
2398146 | \n", "845172 | \n", "769 | \n", "Winfield, KS | \n", "msa | \n", "KS | \n", "SFR | \n", "2024-01-06 | \n", "135450.0 | \n", "NaN | \n", "NaN | \n", "NaN | \n", "NaN | \n", "NaN | \n", "
2398147 | \n", "845172 | \n", "769 | \n", "Winfield, KS | \n", "msa | \n", "KS | \n", "all homes | \n", "2024-01-06 | \n", "128000.0 | \n", "NaN | \n", "NaN | \n", "NaN | \n", "NaN | \n", "NaN | \n", "
2398148 | \n", "845172 | \n", "769 | \n", "Winfield, KS | \n", "msa | \n", "KS | \n", "all homes | \n", "2024-01-06 | \n", "NaN | \n", "121488.0 | \n", "NaN | \n", "NaN | \n", "NaN | \n", "NaN | \n", "
2398149 rows × 13 columns
\n", "