Skip to content

[ENH] improve encode_categoricals #927

Closed
@samukweku

Description

@samukweku

Brief Description

  • Simplify logic for _encode_categoricals in utils.py. A simple for-loop possibly
    • If user provides categories use as-is (order defaults to appearance)
    • order should be relevant only if categories is not provided.
  • Get rid of As_categorical helper function (tuple of categories, order is sufficient)

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