VForWaTer / metacatalog

Modular metadata management platform for environmental data.
https://vforwater.github.io/metacatalog
GNU General Public License v3.0
3 stars 1 forks source link

Fix NaN replace with `pandas==1.3.0` #165

Closed mmaelicke closed 2 years ago

mmaelicke commented 2 years ago

Initializing new databses does not work with pandas>=1.3.0 anymore. This line is causing the trouble:

https://github.com/VForWaTer/metacatalog/blob/e9634a950c6e760ff0803ff1ec65aa77df69eebd/metacatalog/api/db.py#L132

Stackoverflow issue:

This might solve the problem: https://stackoverflow.com/questions/14162723/replacing-pandas-or-numpy-nan-with-a-none-to-use-with-mysqldb/54403705#54403705

Todos: