def get_column_names(
    data,
    column_t_index,
    column_r_index,
):
    """Function that gets column indexes of T and R data in dataframe.

    Args:
        data (list): list of DataFrames of raw data
        column_t_index (str): index of column containing temperature data
        column_r_index (str): index of column containing resistance data

    Returns:
        column_t_name (str): name of column containing temperature data
        column_r_name (str): name of column containing resistance data
    """

    # Getting column names
    temp_data = data[0]
    data_names = temp_data.columns
    column_t_name = data_names[column_t_index]
    column_r_name = data_names[column_r_index]

    print('\nSelected columns: "' + column_t_name + '", "' + column_r_name + '"')

    return column_t_name, column_r_name