Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to get original values + encoded values mapping ? #13

Open
VinayChaudhari1996 opened this issue Nov 2, 2020 · 0 comments
Open

How to get original values + encoded values mapping ? #13

VinayChaudhari1996 opened this issue Nov 2, 2020 · 0 comments
Labels
New Method Idea Proposal for new encoding method

Comments

@VinayChaudhari1996
Copy link

Problem (dataframe having)
index weekday
0 Sunday
1 Sunday
2 Wednesday
3 Monday
4 Monday
5 Thursday
6 Tuesday


After encoding :-

index weekday
0 3
1 3
2 6
3 1
4 1
5 4
6 5

Now how do I get original + encoded values mapping like :-

{'Sunday':3, 'Wednesday':6 ..... }

Thanks ,

@VinayChaudhari1996 VinayChaudhari1996 added the New Method Idea Proposal for new encoding method label Nov 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
New Method Idea Proposal for new encoding method
Projects
None yet
Development

No branches or pull requests

1 participant