Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Easily retrieve mapping from OrdinalEncoder #28891

Copy link
Copy link
Open
@oasidorshin

Description

@oasidorshin
Issue body actions

Describe the workflow you want to enable

It would be nice to be able to easily retrieve mapping in the form of a dictionary

"category_a": 0,
"category_b": 1,
"category_infrequent": 2,
...

Currently .categories_ attribute only retrieves list of seen categories, without mapping.

This becomes especially important with options to handle missing or infrequent values, which are leading to questions "What value does infrequent categories map to?" and so on.

Describe your proposed solution

Add .categories_map_ attribute to OrdinalEncoder

Describe alternatives you've considered, if relevant

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.