<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _compute_aggregation(aggregation: str, data: Iterable[Any]):
 """ Compute the specified aggregation on the given data. or one of :py:attr:`EXTRA_AGGREGATIONS`. :param data: data to be aggregated :raise ValueError: if the specified aggregation is not supported or found in NumPy """

        ComputeStats._raise_check_aggregation(aggregation)
        if aggregation == 'nanfraction':
            return np.sum(np.isnan(data)) / len(data)
        if aggregation == 'nancount':
            return int(np.sum(np.isnan(data)))
        return getattr(np, aggregation)(data)