Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def aggregate(normalized, insolation, overall_filter,
aggregation_frequency):
norm = normalized[overall_filter]
insol = insolation[overall_filter]
aggregated = aggregation.aggregation_insol(norm, insol,
aggregation_frequency)
aggregated_insolation = insol.resample(aggregation_frequency).sum()
return aggregated, aggregated_insolation