Given a dataset, how would you implement a function to compute the average value of a specific column?