Skip to content

undetected possible encoding issue #106

Closed
@eloiup

Description

@eloiup

Hi

was doing a callback to filter a dataframe through a categorical variable.

Categorical value had accentuation (portuguese)

When filtering it through:
`
@app.callback...

def filter_function(input_variable):

    df_2 = df.loc[df['series'].map(lambda x: x in input_variable)] ##input_variable is a list of strings

    return some_value_function_of_d2

`

it didnt give any error msgs, but numbers werent checking out. after some time looking into it i noticed what was happening is that the filter wasnt working properly for one of the strings in the list, the one with accentuation, most likely an issue with encoding.

if necessary i can provide further detail

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions