def bind_survey_data(
self,
questions_categorical: Union[list, str] = None,
questions_continuous: Union[list, str] = None,
questions_geo: Union[list, str] = None,
questions_label: str = None,
questions_column_filter: str = None,
questions_id: str = None,
questions_metadata: Union[list, str] = None,
order_categories: Union[list, str] = None,
labels_label: str = None,
labels_replacement: str = None,
colors_question: str = None,
colors_answer: str = None,
colors_color: str = None,
places_latitude: str = None,
places_longitude: str = None,
places_names: Union[list, str] = None,
answer_groups_group: str = None,
answer_groups_question: str = None,
answer_groups_display_as: str = None,
answer_groups_affirmative_answers: Union[list, str] = None
)
python
ArgumentsType hintDescription
selfFlourishReturns the Flourish object
questions_categoricalUnion[list, str], optionalCategorical columns. Each of these columns appears in the Group by, Shade by and Compare dropdowns. Flourish type hint: columns
questions_continuousUnion[list, str], optionalContinuous columns. Must contain numbers. Each of these columns appears in the Size by dropdown. Flourish type hint: columns
questions_geoUnion[list, str], optionalGeographic columns. Must contain place names matching those specified in the Places sheet. Set to blank to disable the map mode. Flourish type hint: columns
questions_labelstr, optionalLabel. A column containing text (e.g. names or emoji) to write on the dots. Not recommended for datasets with more than a few hundred dots. Flourish type hint: column
questions_column_filterstr, optionalSlider or menu. Add a time slider or menu to filter the data based on the contents of a single column. Flourish type hint: column
questions_idstr, optionalUnique name/ID. Specify to allow animations between multiple occurrences of the same person or thing e.g. when using a time slider. Flourish type hint: column
questions_metadataUnion[list, str], optionalInfo for popups. One or more columns of information (text, image URLs, embedded charts etc) to include in popups and panelsFlourish type hint: columns
order_categoriesUnion[list, str], optionalOrder of answers. Use one column for each question or metric. Put the column header from the main data sheet at the top (e.g. "Do you agree?"), followed by the answers in the order you want (e.g. "disagree", "neutral", "agree"). Flourish type hint: columns
labels_labelstr, optionalLabel. A column containing phrases from the main data sheet. Flourish type hint: column
labels_replacementstr, optionalReplacement. A column containing the phrase to display. Flourish type hint: column
colors_questionstr, optionalQuestion. The column header (e.g. a survey question) exactly as it appears in the main data sheet. Flourish type hint: column
colors_answerstr, optionalAnswer. Use one column for each question or metric. Put the column header from the main datasheet at the top (e.g. "Do you agree?"), followed by the answers in the order you want (e.g. "disagree", "neutral", "agree"). Flourish type hint: column
colors_colorstr, optionalColor. A color name (e.g. orange, red) or code (e.g. #ff3300, #ff0000). Flourish type hint: column
places_latitudestr, optionalLatitude. A column of latitude values. Flourish type hint: column
places_longitudestr, optionalLongitude. A column of longitude values. Flourish type hint: column
places_namesUnion[list, str], optionalNames. One or more columns of place names matching those in the main data sheet. Flourish type hint: columns
answer_groups_groupstr, optionalGroup name. This column will contain the name of the grouped question Flourish type hint: column
answer_groups_questionstr, optionalQuestion. A question that matches exactly one of the questions in the datasheet. Flourish type hint: column
answer_groups_display_asstr, optionalDisplay answer as. This will be the new text for the question. Flourish type hint: column
answer_groups_affirmative_answersUnion[list, str], optionalAnswers to include. The respondent is included in the group if their answer to the question is one of the answers listed in these columns. Flourish type hint: columns