-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use population sizes from
forecasttools.location_table
now that the…
…y are provided (#324)
- Loading branch information
1 parent
318a2d4
commit 3a0a5bf
Showing
4 changed files
with
31 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
from pipelines import prep_data | ||
|
||
|
||
def test_get_state_pop_df(): | ||
""" | ||
Confirm get_state_pop_df() | ||
returns a polars data frame | ||
with the expected number of rows | ||
and expected column names | ||
""" | ||
df = prep_data.get_state_pop_df() | ||
assert df.height == 58 # 50 states, 7 other jursidictions, US national | ||
assert set(df.columns) == set(["name", "abb", "population"]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters