pangaea-data-publisher / pangaeapy

PANGAEA Python Client
https://www.pangaea.de/
GNU General Public License v3.0
29 stars 18 forks source link

future warning pandataset.py #65

Closed nanselm closed 3 weeks ago

nanselm commented 6 months ago

Hi,

future warning pops up using the following:

from pangaeapy.pandataset import PanDataSet
import pandas as pd

PanDataSet('doi:10.1594/PANGAEA.861314')

Message is:

FutureWarning: Downcasting behavior in `replace` is deprecated and will be removed in a future version. To retain the old behavior, explicitly call `result.infer_objects(copy=False)`. To opt-in to the future behavior, set `pd.set_option('future.no_silent_downcasting', True)`
  tmp_qc_series.replace(to_replace=self.quality_flag_replace, inplace=True)
nselke commented 4 months ago

Should have been fixed with commit 1bbba69.

However, the current version on PyPI does not yet include the fix.