Skip to content

_ceteris_paribus - utils.py - np.unique not working on mixed datatypes in python 3.7 #293

@andrewbosma

Description

@andrewbosma

calculate_variable_split line 151 variable_splits[variable] = np.unique(variable_column), np.unique does not like mixed datatype columns in python 3.7 suggested fix could be

variable_splits[variable] = np.unique(variable_column.astype(str))

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions