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 e58311f commit a4d15c5
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

1 comment on commit a4d15c5

@vercel
Copy link

@vercel vercel bot commented on a4d15c5 Oct 7, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.