Write a function to calculate the Volume Weighted Average Price (VWAP) from a pandas DataFrame.
Implement calculate_vwap(df). The input contains numeric price and volume columns, represented for grading as a map from column names to arrays. Return the VWAP as a numeric value: the sum of price[i] * volume[i] divided by the sum of all volumes. Assume prices and volumes are nonnegative and total volume is positive.
def calculate_vwap(df):