Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def yoy_degradation(aggregated, **kwargs):
yoy_rd, yoy_ci, yoy_info = degradation.degradation_year_on_year(
aggregated,
**kwargs
)
yoy_results = {
'p50_rd': yoy_rd,
'rd_confidence_interval': yoy_ci,
'calc_info': yoy_info
}
return yoy_results