Convert Pandas column containing NaNs to dtype `int`

The lack of NaN rep in integer columns is a pandas “gotcha”.

The usual workaround is to simply use floats.

Leave a Comment