meteostat / meteostat-python

Access and analyze historical weather and climate data with Python.
https://dev.meteostat.net/python/
MIT License
437 stars 60 forks source link

DeprecationWarning #139

Open olivierNyp opened 1 year ago

olivierNyp commented 1 year ago

I'm getting the following error:

DeprecationWarning: In a future version,df.iloc[:, i] = newvalswill attempt to set the values inplace instead of always setting a new array. To retain the old behavior, use eitherdf[df.columns[i]] = newvalsor, if columns are non-unique,df.isetitem(i, newvals)`

When i remove this part from the file loader.py the problem is no longer occuring. I'm using meteostat version 1.6.7

` # Force datetime conversion

if coerce_dates:

    #     df.iloc[:, parse_dates] = df.iloc[:, parse_dates].apply(
    #         pd.to_datetime, errors="coerce"
    #     )`