是否可以在 python数据表中更改stypes.int8
为?stypes.int32
问问题
444 次
2 回答
3
You can easily do it:
Assume you have a DT and a field type is int32
DT = dt.Frame({'x': [1,2,3,4,5]})
and we could like to change its type from int32 to int8 as
DT['x'] = dt.int8
Here is the syntax:
DT['column'] = datatype # (dt.int32 or dt.str32 etc etcc)
于 2020-04-27T15:05:21.997 回答
1
于 2020-04-27T08:05:01.943 回答