import csv


def create_csv_table(table_path, rows_list):
    """Create csv file from list of lists.

    Args:
        table_path (str): file path to table.
        rows_list (list): nested list of elements to write to table.

    Returns:
        table_path (str): filepath to table.
    """
    with open(table_path, 'w') as f:
        writer = csv.writer(f)
        writer.writerows(rows_list)
    return table_path