{ "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 = \"new_constructions/\"\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": 38, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "processing Metro_new_con_sales_count_raw_uc_condo_month.csv\n", "processing Metro_new_con_median_sale_price_per_sqft_uc_sfr_month.csv\n", "processing Metro_new_con_sales_count_raw_uc_sfr_month.csv\n", "processing Metro_new_con_median_sale_price_uc_sfrcondo_month.csv\n", "processing Metro_new_con_median_sale_price_per_sqft_uc_condo_month.csv\n", "processing Metro_new_con_sales_count_raw_uc_sfrcondo_month.csv\n", "processing Metro_new_con_median_sale_price_uc_condo_month.csv\n", "processing Metro_new_con_median_sale_price_uc_sfr_month.csv\n", "processing Metro_new_con_median_sale_price_per_sqft_uc_sfrcondo_month.csv\n" ] }, { "data": { "text/html": [ "
\n", " | RegionID | \n", "SizeRank | \n", "RegionName | \n", "RegionType | \n", "StateName | \n", "Home Type | \n", "Date | \n", "Sales Count | \n", "Median Sale Price per Sqft | \n", "Median Sale Price | \n", "
---|---|---|---|---|---|---|---|---|---|---|
0 | \n", "102001 | \n", "0 | \n", "United States | \n", "country | \n", "NaN | \n", "SFR | \n", "2018-01-31 | \n", "33940.0 | \n", "137.412316 | \n", "309000.0 | \n", "
1 | \n", "102001 | \n", "0 | \n", "United States | \n", "country | \n", "NaN | \n", "SFR | \n", "2018-02-28 | \n", "33304.0 | \n", "137.199170 | \n", "309072.5 | \n", "
2 | \n", "102001 | \n", "0 | \n", "United States | \n", "country | \n", "NaN | \n", "SFR | \n", "2018-03-31 | \n", "42641.0 | \n", "139.520863 | \n", "315488.0 | \n", "
3 | \n", "102001 | \n", "0 | \n", "United States | \n", "country | \n", "NaN | \n", "SFR | \n", "2018-04-30 | \n", "37588.0 | \n", "139.778110 | \n", "314990.0 | \n", "
4 | \n", "102001 | \n", "0 | \n", "United States | \n", "country | \n", "NaN | \n", "SFR | \n", "2018-05-31 | \n", "39933.0 | \n", "143.317968 | \n", "324500.0 | \n", "
... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "
49482 | \n", "845162 | \n", "535 | \n", "Granbury, TX | \n", "msa | \n", "TX | \n", "all homes | \n", "2023-07-31 | \n", "31.0 | \n", "NaN | \n", "NaN | \n", "
49483 | \n", "845162 | \n", "535 | \n", "Granbury, TX | \n", "msa | \n", "TX | \n", "all homes | \n", "2023-08-31 | \n", "33.0 | \n", "NaN | \n", "NaN | \n", "
49484 | \n", "845162 | \n", "535 | \n", "Granbury, TX | \n", "msa | \n", "TX | \n", "all homes | \n", "2023-09-30 | \n", "26.0 | \n", "NaN | \n", "NaN | \n", "
49485 | \n", "845162 | \n", "535 | \n", "Granbury, TX | \n", "msa | \n", "TX | \n", "all homes | \n", "2023-10-31 | \n", "24.0 | \n", "NaN | \n", "NaN | \n", "
49486 | \n", "845162 | \n", "535 | \n", "Granbury, TX | \n", "msa | \n", "TX | \n", "all homes | \n", "2023-11-30 | \n", "16.0 | \n", "NaN | \n", "NaN | \n", "
49487 rows × 10 columns
\n", "\n", " | Region ID | \n", "Size Rank | \n", "Region | \n", "Region Type | \n", "State | \n", "Home Type | \n", "Date | \n", "Sales Count | \n", "Median Sale Price per Sqft | \n", "Median Sale Price | \n", "
---|---|---|---|---|---|---|---|---|---|---|
0 | \n", "102001 | \n", "0 | \n", "United States | \n", "country | \n", "NaN | \n", "SFR | \n", "2018-01-31 | \n", "33940.0 | \n", "137.412316 | \n", "309000.0 | \n", "
1 | \n", "102001 | \n", "0 | \n", "United States | \n", "country | \n", "NaN | \n", "SFR | \n", "2018-02-28 | \n", "33304.0 | \n", "137.199170 | \n", "309072.5 | \n", "
2 | \n", "102001 | \n", "0 | \n", "United States | \n", "country | \n", "NaN | \n", "SFR | \n", "2018-03-31 | \n", "42641.0 | \n", "139.520863 | \n", "315488.0 | \n", "
3 | \n", "102001 | \n", "0 | \n", "United States | \n", "country | \n", "NaN | \n", "SFR | \n", "2018-04-30 | \n", "37588.0 | \n", "139.778110 | \n", "314990.0 | \n", "
4 | \n", "102001 | \n", "0 | \n", "United States | \n", "country | \n", "NaN | \n", "SFR | \n", "2018-05-31 | \n", "39933.0 | \n", "143.317968 | \n", "324500.0 | \n", "
... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "
49482 | \n", "845162 | \n", "535 | \n", "Granbury, TX | \n", "msa | \n", "TX | \n", "all homes | \n", "2023-07-31 | \n", "31.0 | \n", "NaN | \n", "NaN | \n", "
49483 | \n", "845162 | \n", "535 | \n", "Granbury, TX | \n", "msa | \n", "TX | \n", "all homes | \n", "2023-08-31 | \n", "33.0 | \n", "NaN | \n", "NaN | \n", "
49484 | \n", "845162 | \n", "535 | \n", "Granbury, TX | \n", "msa | \n", "TX | \n", "all homes | \n", "2023-09-30 | \n", "26.0 | \n", "NaN | \n", "NaN | \n", "
49485 | \n", "845162 | \n", "535 | \n", "Granbury, TX | \n", "msa | \n", "TX | \n", "all homes | \n", "2023-10-31 | \n", "24.0 | \n", "NaN | \n", "NaN | \n", "
49486 | \n", "845162 | \n", "535 | \n", "Granbury, TX | \n", "msa | \n", "TX | \n", "all homes | \n", "2023-11-30 | \n", "16.0 | \n", "NaN | \n", "NaN | \n", "
49487 rows × 10 columns
\n", "