def make_bokeh_table(geosource, col_name: str = 'zip'): # Make a table of the numerical values that we can sort by dt_columns = [ TableColumn(field=col_name, title=col_name), TableColumn(field=col_name + '_percent', title='Percentage of users in ' + col_name), TableColumn(field=col_name + '_counts', title='Number of Users in ' + col_name) ] data_table = DataTable(source=geosource, columns=dt_columns) data_table.selectable = False data_table.editable = False data_table.scroll_to_selection = True data_table.reorderable = True data_table.sortable = True return data_table