aeromaps.utils.defaults¶
get_default_series ¶
get_default_series(start_year, end_year, fill_value=0.0)
Create a pandas Series with years as index and a constant fill value.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
start_year
|
The starting year of the series. |
required | |
end_year
|
The ending year of the series. |
required | |
fill_value
|
The constant value to fill the series with (default is 0.0). |
0.0
|
Returns:
| Type | Description |
|---|---|
Series
|
A pandas Series indexed by years from start_year to end_year, filled with fill_value. |
Source code in aeromaps/utils/defaults.py
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | |