Radio button values

What I’m trying to do:
I am inserting the value of a radio button into a table

 for self.radio_button in self.column_panel_2.get_components():
      if self.radio_button.selected:       
        add_select = self.radio_button.value 

What I’ve tried and what’s not working:
The values are int but when I try and put them into a number column the error,

Column ‘selection_from_user_1’ is a number - cannot set it to a string

is displayed.

so the question is how do I get the value to be a number and not a string

I don’t know what add_select is, but I’m guessing you should change the last .value to .selected.

Your code doesn’t show inserting value into table, please update it

You could try str(insert_value)

Thank you for taking a look at this problem.
I have found the solution
Thanks