meteostat / meteostat-python

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

Change numpy.NaN to numpy.nan for compatibility with numpy>=2.0.0 #160

Closed ngehrsitz closed 5 months ago

ngehrsitz commented 5 months ago

Starting from numpy 2.0.0 the NaN import is missing: https://github.com/numpy/numpy/blob/v2.0.0/numpy/__init__.pyi The doc also recommends switching to nan: https://numpy.org/doc/stable/reference/constants.html#numpy.NAN