Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jGaboardi opened this issue Jul 21, 2024 · 0 comments
Open

Comments

@jGaboardi
Copy link
Member

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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant