def METHOD_NAME(op, data, base, **kwargs):
    if data.dtype == np.dtype(np.object_):
        return vectorize_object(op, data, base, **kwargs)
    if base is None:
        return np.log(data)
    return np.log(data) / np.log(base)