malariagen / malariagen-data-python

Analyse MalariaGEN data from Python
https://malariagen.github.io/malariagen-data-python/latest/
MIT License
13 stars 23 forks source link

Pandas FutureWarning: Setting an item of incompatible dtype is deprecated #532

Open jonbrenas opened 2 months ago

jonbrenas commented 2 months ago

When a value is missing in the genome features table, an empty string is stored instead of a float64 (nan is probably the best value in that case).

/Users/jb52/GitRepos/malariagen-data-python/malariagen_data/anoph/genome_features.py:366: FutureWarning:

  Setting an item of incompatible dtype is deprecated and will raise an error in a future version of pandas. Value '' has dtype incompatible with float64, please explicitly cast to a compatible dtype first.