alteryx / categorical_encoding

Repository for the research and implementation of categorical encoding into a Featuretools-compatible Python library
BSD 3-Clause "New" or "Revised" License
50 stars 15 forks source link

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

Open VinayChaudhari1996 opened 3 years ago

VinayChaudhari1996 commented 3 years ago

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 ,