NumPy or Pandas: Keeping array type as integer while having a NaN value

前端 未结 8 1142
粉色の甜心
粉色の甜心 2020-11-22 06:05

Is there a preferred way to keep the data type of a numpy array fixed as int (or int64 or whatever), while still having an element ins

8条回答
  •  野的像风
    2020-11-22 06:29

    This is now possible, since pandas v 0.24.0

    pandas 0.24.x release notes Quote: "Pandas has gained the ability to hold integer dtypes with missing values.

提交回复
热议问题