Skip to content

Commit

Permalink
Update to August 2023, new HCD data path
Browse files Browse the repository at this point in the history
  • Loading branch information
sid-kap committed Oct 7, 2023
1 parent 0329a45 commit f57bd2b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/projections.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const months = {
}

// eslint-disable-next-line @typescript-eslint/no-inferrable-types
const latestMonth: number = 6
const latestMonth: number = 8
const glueWord = latestMonth == 2 ? "and" : "through"
const observedMonths =
latestMonth == 1
Expand Down
2 changes: 1 addition & 1 deletion python/housing_data/build_data_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def get_numerical_columns(
CANADA_POPULATION_DIR = Path("data", "canada-population")

# Last year and month for which monthly BPS data is available (and is cloned to housing-data-data).
LATEST_MONTH = (2023, 6)
LATEST_MONTH = (2023, 8)
LAST_YEAR_ANNUAL_DATA_RELEASED = True


Expand Down
2 changes: 1 addition & 1 deletion python/housing_data/california_hcd_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
def load_california_hcd_data(
data_path: Path,
) -> tuple[pd.DataFrame, pd.DataFrame, pd.DataFrame]:
df = pd.read_csv(data_path / "data/apr/table-a2-2018-2022.csv.gz")
df = pd.read_csv(data_path / "data/apr/table-a2-combined.csv.gz")

# BPS doesn't include mobile homes, so we shouldn't include them here either
df = df[df["UNIT_CAT_DESC"] != "Mobile Home Unit"].copy()
Expand Down

0 comments on commit f57bd2b

Please sign in to comment.