2024-10-02 10:30:57 发布
网友
在pythondatatable中是否可以将stypes.int8更改为stypes.int32
stypes.int8
stypes.int32
从^{}开始:
As the name suggests, the package is closely related to R's data.table and attempts to mimic its core algorithms and API.
因此,您可以按照^{}和^{}进行数据类型转换
您可以轻松做到:
假设您有一个DT,字段类型为int32
DT = dt.Frame({'x': [1,2,3,4,5]})
我们可以将其类型从int32更改为int8,如下所示
DT['x'] = dt.int8
以下是语法:
DT['column'] = datatype # (dt.int32 or dt.str32 etc etcc)
从^{} 开始:
因此,您可以按照^{} 和^{} 进行数据类型转换
您可以轻松做到:
假设您有一个DT,字段类型为int32
我们可以将其类型从int32更改为int8,如下所示
以下是语法:
相关问题 更多 >
编程相关推荐