{ "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 = \"rentals/\"\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": 26, "metadata": {}, "outputs": [ { "data": { "text/html": [ "
\n", " | RegionID | \n", "SizeRank | \n", "RegionName | \n", "RegionType | \n", "StateName | \n", "Home Type | \n", "State | \n", "Metro | \n", "StateCodeFIPS | \n", "MunicipalCodeFIPS | \n", "Date | \n", "Rent (Smoothed) | \n", "CountyName | \n", "Rent (Smoothed) (Seasonally Adjusted) | \n", "City | \n", "
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0 | \n", "66 | \n", "146 | \n", "Ada County | \n", "county | \n", "ID | \n", "all homes plus multifamily | \n", "ID | \n", "Boise City, ID | \n", "16.0 | \n", "1.0 | \n", "2015-01-31 | \n", "927.493763 | \n", "NaN | \n", "927.493763 | \n", "NaN | \n", "
1 | \n", "66 | \n", "146 | \n", "Ada County | \n", "county | \n", "ID | \n", "all homes plus multifamily | \n", "ID | \n", "Boise City, ID | \n", "16.0 | \n", "1.0 | \n", "2015-02-28 | \n", "931.690623 | \n", "NaN | \n", "931.690623 | \n", "NaN | \n", "
2 | \n", "66 | \n", "146 | \n", "Ada County | \n", "county | \n", "ID | \n", "all homes plus multifamily | \n", "ID | \n", "Boise City, ID | \n", "16.0 | \n", "1.0 | \n", "2015-03-31 | \n", "932.568601 | \n", "NaN | \n", "932.568601 | \n", "NaN | \n", "
3 | \n", "66 | \n", "146 | \n", "Ada County | \n", "county | \n", "ID | \n", "all homes plus multifamily | \n", "ID | \n", "Boise City, ID | \n", "16.0 | \n", "1.0 | \n", "2015-04-30 | \n", "933.148134 | \n", "NaN | \n", "933.148134 | \n", "NaN | \n", "
4 | \n", "66 | \n", "146 | \n", "Ada County | \n", "county | \n", "ID | \n", "all homes plus multifamily | \n", "ID | \n", "Boise City, ID | \n", "16.0 | \n", "1.0 | \n", "2015-05-31 | \n", "941.045724 | \n", "NaN | \n", "941.045724 | \n", "NaN | \n", "
... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "
1258735 | \n", "857850 | \n", "713 | \n", "Cherry Hill | \n", "city | \n", "NJ | \n", "all homes plus multifamily | \n", "NaN | \n", "NaN | \n", "NaN | \n", "NaN | \n", "2023-08-31 | \n", "2291.604800 | \n", "Camden County | \n", "2244.961006 | \n", "NaN | \n", "
1258736 | \n", "857850 | \n", "713 | \n", "Cherry Hill | \n", "city | \n", "NJ | \n", "all homes plus multifamily | \n", "NaN | \n", "NaN | \n", "NaN | \n", "NaN | \n", "2023-09-30 | \n", "2296.188906 | \n", "Camden County | \n", "2254.213172 | \n", "NaN | \n", "
1258737 | \n", "857850 | \n", "713 | \n", "Cherry Hill | \n", "city | \n", "NJ | \n", "all homes plus multifamily | \n", "NaN | \n", "NaN | \n", "NaN | \n", "NaN | \n", "2023-10-31 | \n", "2292.270938 | \n", "Camden County | \n", "2261.540446 | \n", "NaN | \n", "
1258738 | \n", "857850 | \n", "713 | \n", "Cherry Hill | \n", "city | \n", "NJ | \n", "all homes plus multifamily | \n", "NaN | \n", "NaN | \n", "NaN | \n", "NaN | \n", "2023-11-30 | \n", "2253.417140 | \n", "Camden County | \n", "2257.956024 | \n", "NaN | \n", "
1258739 | \n", "857850 | \n", "713 | \n", "Cherry Hill | \n", "city | \n", "NJ | \n", "all homes plus multifamily | \n", "NaN | \n", "NaN | \n", "NaN | \n", "NaN | \n", "2023-12-31 | \n", "2280.830303 | \n", "Camden County | \n", "2280.830303 | \n", "NaN | \n", "
1258740 rows × 15 columns
\n", "\n", " | RegionID | \n", "SizeRank | \n", "RegionName | \n", "RegionType | \n", "Home Type | \n", "State | \n", "Metro | \n", "StateCodeFIPS | \n", "MunicipalCodeFIPS | \n", "Date | \n", "Rent (Smoothed) | \n", "Rent (Smoothed) (Seasonally Adjusted) | \n", "City | \n", "County | \n", "
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0 | \n", "66 | \n", "146 | \n", "Ada County | \n", "county | \n", "all homes plus multifamily | \n", "Ada County | \n", "Boise City, ID | \n", "16.0 | \n", "1.0 | \n", "2015-01-31 | \n", "927.493763 | \n", "927.493763 | \n", "NaN | \n", "Ada County | \n", "
1 | \n", "66 | \n", "146 | \n", "Ada County | \n", "county | \n", "all homes plus multifamily | \n", "Ada County | \n", "Boise City, ID | \n", "16.0 | \n", "1.0 | \n", "2015-02-28 | \n", "931.690623 | \n", "931.690623 | \n", "NaN | \n", "Ada County | \n", "
2 | \n", "66 | \n", "146 | \n", "Ada County | \n", "county | \n", "all homes plus multifamily | \n", "Ada County | \n", "Boise City, ID | \n", "16.0 | \n", "1.0 | \n", "2015-03-31 | \n", "932.568601 | \n", "932.568601 | \n", "NaN | \n", "Ada County | \n", "
3 | \n", "66 | \n", "146 | \n", "Ada County | \n", "county | \n", "all homes plus multifamily | \n", "Ada County | \n", "Boise City, ID | \n", "16.0 | \n", "1.0 | \n", "2015-04-30 | \n", "933.148134 | \n", "933.148134 | \n", "NaN | \n", "Ada County | \n", "
4 | \n", "66 | \n", "146 | \n", "Ada County | \n", "county | \n", "all homes plus multifamily | \n", "Ada County | \n", "Boise City, ID | \n", "16.0 | \n", "1.0 | \n", "2015-05-31 | \n", "941.045724 | \n", "941.045724 | \n", "NaN | \n", "Ada County | \n", "
... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "
1258735 | \n", "857850 | \n", "713 | \n", "Cherry Hill | \n", "city | \n", "all homes plus multifamily | \n", "Camden County | \n", "NaN | \n", "NaN | \n", "NaN | \n", "2023-08-31 | \n", "2291.604800 | \n", "2244.961006 | \n", "Cherry Hill | \n", "NaN | \n", "
1258736 | \n", "857850 | \n", "713 | \n", "Cherry Hill | \n", "city | \n", "all homes plus multifamily | \n", "Camden County | \n", "NaN | \n", "NaN | \n", "NaN | \n", "2023-09-30 | \n", "2296.188906 | \n", "2254.213172 | \n", "Cherry Hill | \n", "NaN | \n", "
1258737 | \n", "857850 | \n", "713 | \n", "Cherry Hill | \n", "city | \n", "all homes plus multifamily | \n", "Camden County | \n", "NaN | \n", "NaN | \n", "NaN | \n", "2023-10-31 | \n", "2292.270938 | \n", "2261.540446 | \n", "Cherry Hill | \n", "NaN | \n", "
1258738 | \n", "857850 | \n", "713 | \n", "Cherry Hill | \n", "city | \n", "all homes plus multifamily | \n", "Camden County | \n", "NaN | \n", "NaN | \n", "NaN | \n", "2023-11-30 | \n", "2253.417140 | \n", "2257.956024 | \n", "Cherry Hill | \n", "NaN | \n", "
1258739 | \n", "857850 | \n", "713 | \n", "Cherry Hill | \n", "city | \n", "all homes plus multifamily | \n", "Camden County | \n", "NaN | \n", "NaN | \n", "NaN | \n", "2023-12-31 | \n", "2280.830303 | \n", "2280.830303 | \n", "Cherry Hill | \n", "NaN | \n", "
1258740 rows × 14 columns
\n", "\n", " | Region ID | \n", "Size Rank | \n", "Region | \n", "Region Type | \n", "Home Type | \n", "State | \n", "Metro | \n", "State Code FIPS | \n", "Municipal Code FIPS | \n", "Date | \n", "Rent (Smoothed) | \n", "Rent (Smoothed) (Seasonally Adjusted) | \n", "City | \n", "County | \n", "
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0 | \n", "66 | \n", "146 | \n", "Ada County | \n", "county | \n", "all homes plus multifamily | \n", "Ada County | \n", "Boise City, ID | \n", "16.0 | \n", "1.0 | \n", "2015-01-31 | \n", "927.493763 | \n", "927.493763 | \n", "NaN | \n", "Ada County | \n", "
1 | \n", "66 | \n", "146 | \n", "Ada County | \n", "county | \n", "all homes plus multifamily | \n", "Ada County | \n", "Boise City, ID | \n", "16.0 | \n", "1.0 | \n", "2015-02-28 | \n", "931.690623 | \n", "931.690623 | \n", "NaN | \n", "Ada County | \n", "
2 | \n", "66 | \n", "146 | \n", "Ada County | \n", "county | \n", "all homes plus multifamily | \n", "Ada County | \n", "Boise City, ID | \n", "16.0 | \n", "1.0 | \n", "2015-03-31 | \n", "932.568601 | \n", "932.568601 | \n", "NaN | \n", "Ada County | \n", "
3 | \n", "66 | \n", "146 | \n", "Ada County | \n", "county | \n", "all homes plus multifamily | \n", "Ada County | \n", "Boise City, ID | \n", "16.0 | \n", "1.0 | \n", "2015-04-30 | \n", "933.148134 | \n", "933.148134 | \n", "NaN | \n", "Ada County | \n", "
4 | \n", "66 | \n", "146 | \n", "Ada County | \n", "county | \n", "all homes plus multifamily | \n", "Ada County | \n", "Boise City, ID | \n", "16.0 | \n", "1.0 | \n", "2015-05-31 | \n", "941.045724 | \n", "941.045724 | \n", "NaN | \n", "Ada County | \n", "
... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "
1258735 | \n", "857850 | \n", "713 | \n", "Cherry Hill | \n", "city | \n", "all homes plus multifamily | \n", "Camden County | \n", "NaN | \n", "NaN | \n", "NaN | \n", "2023-08-31 | \n", "2291.604800 | \n", "2244.961006 | \n", "Cherry Hill | \n", "NaN | \n", "
1258736 | \n", "857850 | \n", "713 | \n", "Cherry Hill | \n", "city | \n", "all homes plus multifamily | \n", "Camden County | \n", "NaN | \n", "NaN | \n", "NaN | \n", "2023-09-30 | \n", "2296.188906 | \n", "2254.213172 | \n", "Cherry Hill | \n", "NaN | \n", "
1258737 | \n", "857850 | \n", "713 | \n", "Cherry Hill | \n", "city | \n", "all homes plus multifamily | \n", "Camden County | \n", "NaN | \n", "NaN | \n", "NaN | \n", "2023-10-31 | \n", "2292.270938 | \n", "2261.540446 | \n", "Cherry Hill | \n", "NaN | \n", "
1258738 | \n", "857850 | \n", "713 | \n", "Cherry Hill | \n", "city | \n", "all homes plus multifamily | \n", "Camden County | \n", "NaN | \n", "NaN | \n", "NaN | \n", "2023-11-30 | \n", "2253.417140 | \n", "2257.956024 | \n", "Cherry Hill | \n", "NaN | \n", "
1258739 | \n", "857850 | \n", "713 | \n", "Cherry Hill | \n", "city | \n", "all homes plus multifamily | \n", "Camden County | \n", "NaN | \n", "NaN | \n", "NaN | \n", "2023-12-31 | \n", "2280.830303 | \n", "2280.830303 | \n", "Cherry Hill | \n", "NaN | \n", "
1258740 rows × 14 columns
\n", "