h2oai / h2oai/datatable

Type improvements

Open
#3,097 0 comments 2 reactions 0 assignees View on GitHub
EPIC :star:
Dominant language
C++
Stars
1.9k
Forks
164
Avg merge
7h 31m
Merged PRs (30d)
1

Description

Scheduled improvements to Type class. These should be implemented for version 1.1.0.

- [x] #3138
- [ ] Type objects should be usable in `[...] / type` constructs;
- [ ] `dt.int32` etc singletons should be replaced with `dt.Type.*` instances;
- [ ] Add missing Type objects into the `dt.` namespace: `dt.date32`, `dt.time64`, `dt.void`;
- [ ] Add tests in `tests/types/test-type.py` for 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 to `stype.ctype` property;
- [ ] Add method `.to_dtype()`;
- [ ] Add method `.to_struct()` similar to `stype.struct` property;
- [ ] Deprecate usage of `stype` and `ltype` enum (issue a warning when using them).

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.