datatable
datatable copied to clipboard
Type improvements
Scheduled improvements to Type class. These should be implemented for version 1.1.0.
- [x] #3138
- [ ] Type objects should be usable in
[...] / typeconstructs; - [ ]
dt.int32etc singletons should be replaced withdt.Type.*instances; - [ ] Add missing Type objects into the
dt.namespace:dt.date32,dt.time64,dt.void; - [ ] Add tests in
tests/types/test-type.pyfor using type objects in different places:- In Frame constructor;
- In
f[type]selector; - As a type cast
dt.Type.int32(f.A); - As a type assignment
DT['A'] = dt.Type.int32; - In function
dt.as_type(); - In fread
- [ ] Type objects should be used by fread when handling
columns=callable; - [x] #3101
- [ ] Add method
.to_ctype()similar tostype.ctypeproperty; - [ ] Add method
.to_dtype(); - [ ] Add method
.to_struct()similar tostype.structproperty; - [ ] Deprecate usage of
stypeandltypeenum (issue a warning when using them).