You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
LabelEncoder with mixed typed labels feature or bug? #17294
For the center we have no choice, the bottom one makes sense to me, you don't want to necessarily identify '1' with 1.
You might argue that the top one is a bug, but I'm not sure if we want to replace the numpy casting logic.
Btw, you run into this when concatenating dataframes from multiple csv files and a column is sometimes parsed as string and sometimes as integer. Great Fun!
If we want to make the stuff consistent I am really scared that we will stumble in the dtype nightmare and we might come with tricks-and-tips implementations on something which should already be solved otherwise I think.
If we could maybe have better error messages with potential avenues for resolution could already be great.
Activity
[-]LabelEncoder with different labels feature or bug?[/-][+]LabelEncoder with mixed typed labels feature or bug?[/+]amueller commentedon May 20, 2020
For the center we have no choice, the bottom one makes sense to me, you don't want to necessarily identify
'1'with1.You might argue that the top one is a bug, but I'm not sure if we want to replace the numpy casting logic.
Btw, you run into this when concatenating dataframes from multiple csv files and a column is sometimes parsed as string and sometimes as integer. Great Fun!
jnothman commentedon May 21, 2020
jnothman commentedon May 21, 2020
glemaitre commentedon May 21, 2020
If we want to make the stuff consistent I am really scared that we will stumble in the dtype nightmare and we might come with tricks-and-tips implementations on something which should already be solved otherwise I think.
If we could maybe have better error messages with potential avenues for resolution could already be great.