When converting from an extension type, eg pd.Int32Dtype()
, I get TypeError: data type not understood
. Example:
num_col_with_nan = num_col_with_nan.astype(pd.Int32Dtype()).astype("string")
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.