Minimum Variance Portfolio In Python For All Selected Lines