pandas dataframe astypes 能够转换的类型简单笔记
pandas dataframe astypes 能够转换的类型简单笔记
内容来自 kimi AI
astype 支持:
所有 NumPy 基础类型(int/float/bool/datetime 等)
pandas 扩展可空类型(Int64/Float64/boolean/string)
类别型 category 和自定义 ExtensionDtype
只要记住:字符串别名、NumPy dtype 对象、pandas ExtensionDtype 统统都能用。

浙公网安备 33010602011771号