Skip to content

Add registration functionality to Categorical #761

@glitch

Description

@glitch

Part of Issue #729 involves adding register support to GroupBy. GroupBy internal components may be of type Categorical which currently does not have a register implementation.

UPDATED 2021-04-22: The scope of this ticket has changed after discussion on registration, in-place changes, and scopes. The goal of this ticket is now:

  • Use dot character to delineate sub-component names/extensions for Categorical & Strings subcomponents (i.e. for Strings object registered as foo, it will register components foo.offsets and foo.bytes)
  • Static unregister functions will be added / remain in place for Categorical, Strings, and pdarray with the following changes
    • consistent naming following pattern unregister_<class>_by_name
    • Only support string arg case. Object case should use the instance unregister() methods
  • Add static set of component names for Categorical so we can iterate through it where it makes sense. (NOTE: We were going to do the same for Strings, but there are only two components so it may not make sense, may need to revisit. Similarly type sensitive methods will have to do manual / hard-coded removal i.e. attach, unregister_<>_by_name)
  • is_registered() will be updated to handle cases where not all of the required parts are registered.
  • Regarding Issue Registration should update pdarray.name in place #729-GroupBy sub-section: We are going to skip GroupBy registration functions in favor of a Complex object implementation approach on the server.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions