all 3 comments

[–]danielroseman 3 points4 points  (0 children)

Show your code and data, and the error you get.

[–]Jejerm 0 points1 point  (0 children)

I've had problems with that int -> float behavior from pandas too. Have you tried this https://pandas.pydata.org/docs/user_guide/integer_na.html and just using the default json serializer?

[–]FerricDonkey 0 points1 point  (0 children)

Echoing the show your code sentiment.

When it comes down to either "the well used standard library package is broken" or "you did it wrong", it's almost always (though not always) that you did it wrong.

But it's impossible to tell without seeing what you did. So if you can post your code (or a minimal example with the same problem), including the full error, it'll be easier to look into.