code: def radiogroup_click(attr, old, new):
      active_radio = radio_group.active  ##Getting radio button value
  
      # filter the dataframe with value in radio-button
      if active_radio == 0:
          selected_df = df[df["label"] == "Red"]
      elif active_radio == 1:
          selected_df = df[df["label"] == "Orange"]
  
      source.data = dict(
          x=selected_df.x, y=selected_df.y, label=selected_df.label
      )
  
imports: import pandas
  from bokeh.io import curdoc
  from bokeh.layouts import row
  from bokeh.models import ColumnDataSource, RadioGroup
  from bokeh.plotting import figure
label_desc: Use image node_id 1 for calling a global function with example usage: radiogroup_click(attr, old, new) without return types