-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Accept zero number_of_people_per_household
- Loading branch information
1 parent
8113038
commit 59627af
Showing
3 changed files
with
14 additions
and
7 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
from pandas import Series | ||
|
||
from ..macros import get_final_value | ||
from ..macros import get_final_value, make_zero_by_year | ||
|
||
|
||
def estimate_population_profile(population_by_year): | ||
return { | ||
'final_population': get_final_value(population_by_year), | ||
'zero_by_year': Series(0, index=population_by_year.index), | ||
'zero_by_year': make_zero_by_year(population_by_year), | ||
} |
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