my_code_base.stats.xarray_utils¶
Classes¶
This class provides statistical operations on xarray data. |
Module Contents¶
- class my_code_base.stats.xarray_utils.StatsAccessor(obj)[source]¶
This class provides statistical operations on xarray data.
- Parameters:¶
- obj : xarray.Dataset or xarray.DataArray¶
The xarray object on which statistical operations will be performed.
- fill_months_with_annual_value()[source]¶
Fill the xarray object with annual values for each month.
- Returns:¶
The xarray object with extended annual series.
- Return type:¶
- Raises:¶
ValueError – If the time series is not of yearly frequency.