geopandas / pyogrio

Vectorized vector I/O using OGR
https://pyogrio.readthedocs.io
MIT License
258 stars 22 forks source link

pandas 2.2 raising FutureWarning on to_datetime errors='ignore' #344

Closed akrherz closed 5 months ago

akrherz commented 5 months ago

with pandas 2.2 now released and installed, I get this warning from pyogrio

pyogrio/geopandas.py:49: FutureWarning: errors='ignore' is deprecated and will raise in a future version. Use to_datetime without passing `errors` and catch exceptions explicitly instead
  res = pd.to_datetime(ser, **datetime_kwargs)
jorisvandenbossche commented 5 months ago

Yes, we already have a PR for that in geopandas (https://github.com/geopandas/geopandas/pull/3128), and will need to do a similar fix in pyogrio.