AlertaDengue / PySUS

Library to download, clean and analyze openly available datasets from Brazilian Universal health system, SUS.
GNU General Public License v3.0
173 stars 68 forks source link

[BUG]replace `applymap` by `map` #173

Closed fccoelho closed 8 months ago

fccoelho commented 9 months ago

the DataFrame.applymap is deprecated in Pandas we are getting these warnings:

pysus/data/__init__.py:112: FutureWarning: DataFrame.applymap has been deprecated. Use DataFrame.map instead.
  table = pa.Table.from_pandas(chunk_df.applymap(decode_column))

we need to update the code according to the recommendation above

esloch commented 8 months ago

Done!