def calc_errors(test):
    """
    Calculate difference between actual test values and predictions

    Args:
        test: pandas dataframe of test set

    Returns: pandas series result of operation

    """
    return test['value'] - test['preds']