def create_pivot_table(data, col_names, col_values):
    """
    Create a new subset of a given DataFrame() by creating 
    a pivot table from it.

    Parameters:
        - data: The base DataFrame().
        - columns: The columns of the new DataFrame().
        - column_values: The values to put in each column.

    Returns:
        A DataFrame() object.
    """
    return data.pivot_table(
        index=data.index, 
        columns=col_names,
        values=col_values, 
    )