kailo_beewell_dashboard.synthesise_demographic

Functions which focus on demographic data - as part of several files which provide functions for synthesis (creation and aggregation) of data for the dashboard.

Module Contents

Functions

add_standard_demographic_groups(df)

Adds a 'plot_group' column providing demographic topic group for each item

add_standard_demographic_response_labels(df)

Adds labels for each of the demographic survey questions / data in the

add_symbol_demographic_response_labels(df)

Adds labels for each of the demographic survey questions / data in the

kailo_beewell_dashboard.synthesise_demographic.add_standard_demographic_groups(df)

Adds a ‘plot_group’ column providing demographic topic group for each item in ‘measure’, for the standard survey demographic responses / data.

Parameters

dfDataframe

Dataframe containing ‘measure’ column, which we want to add ‘plot_group’ column to.

kailo_beewell_dashboard.synthesise_demographic.add_standard_demographic_response_labels(df)

Adds labels for each of the demographic survey questions / data in the standard survey

Parameters

dfdataframe

Dataframe containing ‘measure’ column which we want to add labels to

kailo_beewell_dashboard.synthesise_demographic.add_symbol_demographic_response_labels(df)

Adds labels for each of the demographic survey questions / data in the symbol survey

Parameters

dfdataframe

Dataframe containing ‘measure’ column which we want to add labels to