kailo_beewell_dashboard.response_labels

Function to create a dictionary of labels for the responses to each question in the survey

Module Contents

Functions

add_keys(keys, value, dictionary)

Add multiple keys with the same value to the dictionary

create_response_label_dict()

Creates dictionary with labels for each response in each question in the

create_symbol_response_label_dict()

Creates dictionary with labels for each response in each question in the

kailo_beewell_dashboard.response_labels.add_keys(keys, value, dictionary)

Add multiple keys with the same value to the dictionary

Parameters

keys: array

Array with strings that are keys for the dictionary

value: string

Value of each key

dictionary: dictionary

To add the keys and values to, and to source them from too

kailo_beewell_dashboard.response_labels.create_response_label_dict()

Creates dictionary with labels for each response in each question in the standard #BeeWell survey and council data.

Returns

labelsdictionary

Dictionary where key is a topic name or group, and then key is another dictionary where key is numeric answer and value is the label.

kailo_beewell_dashboard.response_labels.create_symbol_response_label_dict()

Creates dictionary with labels for each response in each question in the symbol #BeeWell survey and council data.

Returns

labelsdictionary

Dictionary where key is a topic name or group, and then key is another dictionary where key is numeric answer and value is the label.