'How to use column values as radio button options in tkinter

I'm new to tkinter and I want to build a gui using tkinter where i have uploaded a excel file and i want to add the contents of a particular column as options.

def getExcel ():
global df

import_file_path = filedialog.askopenfilename()
df = pd.read_excel (import_file_path)
    
df0 = df[['ID','Name','Age','Job Title']]

# read header values into the list    
keys = [df0.cell(0, col_index).value for col_index in xrange(df0.ncols)]

global dict_list
dict_list = []
for row_index in xrange(1, df0.nrows):
    d = {keys[col_index]: df0.cell(row_index, col_index).value 
        for col_index in xrange(df0.ncols)}
    dict_list.append(d)

I need to make job title as button and its contents will be as options. Is there any way to do so.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source