def get_portfolio_value(prices, allocs, start_val):
    """ Compute daily portfolio value given stock prices, allocations and starting value.

        Return: pandas Series or DataFrame (with a single column)
    """
    return (prices * allocs).sum(1) * start_val