Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
These are the actions that we will take:
Read the data into arrays.
Calculate VWAP:
import numpy
c,v=numpy.loadtxt('data.csv', delimiter=',', usecols=(6,7), unpack=True)
vwap = numpy.average(c, weights=v)
print "VWAP =", vwap
The output is
VWAP = 350.589549353