Skip to content

adbscan.remap_lbls() -- FutureWarning from pandas -- incompatible dtype #342

@jGaboardi

Description

@jGaboardi

The following line in adbscan.remap_lbls() is throwing the warning below.

remapped_solus.loc[:, s] = solus[s].map(remap_ids)

esda/adbscan.py:347: FutureWarning: Setting an item of incompatible dtype is deprecated and will raise in a future error of pandas. Value '[ 0.  0. nan  7.  7.]' has dtype incompatible with int64, please explicitly cast to a compatible dtype first.
    remapped_solus.loc[:, s] = solus[s].map(remap_ids)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions