public async Task <double> GetAverageFriendsPerUser(string datasetId) { var data = await _datasetRepository.GetFriendsCountPerUserAsync(datasetId); return(data.Values.Sum() / (double)data.Count); }