variance of a portfolio with n assets

numpy ndarray object has no attribute 'value_counts