{ "cells": [ { "cell_type": "code", "execution_count": 3, "metadata": {}, "outputs": [], "source": [ "import pandas as pd\n", "import os" ] }, { "cell_type": "code", "execution_count": 4, "metadata": {}, "outputs": [], "source": [ "DATA_DIR = \"../data\"\n", "PROCESSED_DIR = \"../processed/\"\n", "FACET_DIR = \"days_on_market/\"\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": [ "dict_values(['Mean Listings Price Cut Amount', 'Median Days on Pending', 'Median Days to Close', 'Percent Listings Price Cut'])\n" ] }, { "data": { "text/html": [ "
\n", " | RegionID | \n", "SizeRank | \n", "RegionName | \n", "RegionType | \n", "StateName | \n", "Home Type | \n", "Date | \n", "Mean Listings Price Cut Amount (Smoothed) | \n", "Percent Listings Price Cut | \n", "Mean Listings Price Cut Amount | \n", "Percent Listings Price Cut (Smoothed) | \n", "Median Days on Pending (Smoothed) | \n", "Median Days on Pending | \n", "
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0 | \n", "102001 | \n", "0 | \n", "United States | \n", "country | \n", "NaN | \n", "SFR | \n", "2018-01-06 | \n", "NaN | \n", "NaN | \n", "13508.368375 | \n", "NaN | \n", "NaN | \n", "NaN | \n", "
1 | \n", "102001 | \n", "0 | \n", "United States | \n", "country | \n", "NaN | \n", "SFR | \n", "2018-01-13 | \n", "NaN | \n", "0.049042 | \n", "14114.788383 | \n", "NaN | \n", "NaN | \n", "NaN | \n", "
2 | \n", "102001 | \n", "0 | \n", "United States | \n", "country | \n", "NaN | \n", "SFR | \n", "2018-01-20 | \n", "NaN | \n", "0.044740 | \n", "14326.128956 | \n", "NaN | \n", "NaN | \n", "NaN | \n", "
3 | \n", "102001 | \n", "0 | \n", "United States | \n", "country | \n", "NaN | \n", "SFR | \n", "2018-01-27 | \n", "NaN | \n", "0.047930 | \n", "13998.585612 | \n", "NaN | \n", "NaN | \n", "NaN | \n", "
4 | \n", "102001 | \n", "0 | \n", "United States | \n", "country | \n", "NaN | \n", "SFR | \n", "2018-02-03 | \n", "NaN | \n", "0.047622 | \n", "14120.035549 | \n", "NaN | \n", "NaN | \n", "NaN | \n", "
... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "
586709 | \n", "845172 | \n", "769 | \n", "Winfield, KS | \n", "msa | \n", "KS | \n", "all homes (SFR + Condo) | \n", "2024-01-06 | \n", "NaN | \n", "0.094017 | \n", "NaN | \n", "0.037378 | \n", "NaN | \n", "NaN | \n", "
586710 | \n", "845172 | \n", "769 | \n", "Winfield, KS | \n", "msa | \n", "KS | \n", "all homes (SFR + Condo) | \n", "2024-01-13 | \n", "NaN | \n", "0.070175 | \n", "NaN | \n", "0.043203 | \n", "NaN | \n", "NaN | \n", "
586711 | \n", "845172 | \n", "769 | \n", "Winfield, KS | \n", "msa | \n", "KS | \n", "all homes (SFR + Condo) | \n", "2024-01-20 | \n", "NaN | \n", "0.043478 | \n", "NaN | \n", "0.054073 | \n", "NaN | \n", "NaN | \n", "
586712 | \n", "845172 | \n", "769 | \n", "Winfield, KS | \n", "msa | \n", "KS | \n", "all homes (SFR + Condo) | \n", "2024-01-27 | \n", "NaN | \n", "0.036697 | \n", "NaN | \n", "0.061092 | \n", "NaN | \n", "NaN | \n", "
586713 | \n", "845172 | \n", "769 | \n", "Winfield, KS | \n", "msa | \n", "KS | \n", "all homes (SFR + Condo) | \n", "2024-02-03 | \n", "NaN | \n", "0.077670 | \n", "NaN | \n", "0.057005 | \n", "NaN | \n", "NaN | \n", "
586714 rows × 13 columns
\n", "\n", " | Region ID | \n", "Size Rank | \n", "Region | \n", "Region Type | \n", "StateName | \n", "Home Type | \n", "Date | \n", "Mean Listings Price Cut Amount (Smoothed) | \n", "Percent Listings Price Cut | \n", "Mean Listings Price Cut Amount | \n", "Percent Listings Price Cut (Smoothed) | \n", "Median Days on Pending (Smoothed) | \n", "Median Days on Pending | \n", "
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0 | \n", "102001 | \n", "0 | \n", "United States | \n", "country | \n", "NaN | \n", "SFR | \n", "2018-01-06 | \n", "NaN | \n", "NaN | \n", "13508.368375 | \n", "NaN | \n", "NaN | \n", "NaN | \n", "
1 | \n", "102001 | \n", "0 | \n", "United States | \n", "country | \n", "NaN | \n", "SFR | \n", "2018-01-13 | \n", "NaN | \n", "0.049042 | \n", "14114.788383 | \n", "NaN | \n", "NaN | \n", "NaN | \n", "
2 | \n", "102001 | \n", "0 | \n", "United States | \n", "country | \n", "NaN | \n", "SFR | \n", "2018-01-20 | \n", "NaN | \n", "0.044740 | \n", "14326.128956 | \n", "NaN | \n", "NaN | \n", "NaN | \n", "
3 | \n", "102001 | \n", "0 | \n", "United States | \n", "country | \n", "NaN | \n", "SFR | \n", "2018-01-27 | \n", "NaN | \n", "0.047930 | \n", "13998.585612 | \n", "NaN | \n", "NaN | \n", "NaN | \n", "
4 | \n", "102001 | \n", "0 | \n", "United States | \n", "country | \n", "NaN | \n", "SFR | \n", "2018-02-03 | \n", "NaN | \n", "0.047622 | \n", "14120.035549 | \n", "NaN | \n", "NaN | \n", "NaN | \n", "
... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "
586709 | \n", "845172 | \n", "769 | \n", "Winfield, KS | \n", "msa | \n", "KS | \n", "all homes (SFR + Condo) | \n", "2024-01-06 | \n", "NaN | \n", "0.094017 | \n", "NaN | \n", "0.037378 | \n", "NaN | \n", "NaN | \n", "
586710 | \n", "845172 | \n", "769 | \n", "Winfield, KS | \n", "msa | \n", "KS | \n", "all homes (SFR + Condo) | \n", "2024-01-13 | \n", "NaN | \n", "0.070175 | \n", "NaN | \n", "0.043203 | \n", "NaN | \n", "NaN | \n", "
586711 | \n", "845172 | \n", "769 | \n", "Winfield, KS | \n", "msa | \n", "KS | \n", "all homes (SFR + Condo) | \n", "2024-01-20 | \n", "NaN | \n", "0.043478 | \n", "NaN | \n", "0.054073 | \n", "NaN | \n", "NaN | \n", "
586712 | \n", "845172 | \n", "769 | \n", "Winfield, KS | \n", "msa | \n", "KS | \n", "all homes (SFR + Condo) | \n", "2024-01-27 | \n", "NaN | \n", "0.036697 | \n", "NaN | \n", "0.061092 | \n", "NaN | \n", "NaN | \n", "
586713 | \n", "845172 | \n", "769 | \n", "Winfield, KS | \n", "msa | \n", "KS | \n", "all homes (SFR + Condo) | \n", "2024-02-03 | \n", "NaN | \n", "0.077670 | \n", "NaN | \n", "0.057005 | \n", "NaN | \n", "NaN | \n", "
586714 rows × 13 columns
\n", "