Trying to impute missing categorical data

Looks like a bug. As a short solution you can cast the result variable

idx = idx.astype("float64")

Do you mind opening an issue in the GitHub repo?