iza-institute-of-labor-economics / gettsim

The GErman Taxes and Transfers SIMulator
https://gettsim.readthedocs.io/
GNU Affero General Public License v3.0
56 stars 33 forks source link

ENH: Handle modern Pandas dtypes #677

Open hmgaudecker opened 11 months ago

hmgaudecker commented 11 months ago

Is your feature request related to a problem?

Since Pandas 2.0, it is easier to get arrow-based dtypes in pandas (see here) and they certainly will arrive more frequently from the user side in the future.

Currently, this seems to result in errors like

This is clearly suboptimal and will only grow worse. GETTSIM should work with these dtypes in the sense that users should be able to pass them and get the same stuff back. Main thing will be what to do with Nullability, which at least Jax will not support anytime soon, it seems.

I did not think much about a potential solution yet and it is not the most pressing issue, but we should keep it in the backs of our minds.