Handle missing values in OrdinalEncoder
See original GitHub issueA minimal implementation would pass through NaNs from the input to the output of transform
and make sure the presence of NaN does not affect the categories identified in fit
.
A missing_values
parameter might allow the user to configure what object is a placeholder for missingness (e.g. NaN, None, etc.).
See #10465 for background
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:10 (7 by maintainers)
Top Results From Across the Web
Ordinal encoder issues with NaN values - Stack Overflow
I would like that the job column gets replaced with numbers such as: [1,2,-1,3,1,3]. from sklearn v1. 0, it will no longer complain...
Read more >Extending sklearns OrdinalEncoder - Andrew Wheeler
So you can see this handles missing input data, but the inverse transform always returns None values for missing. The fit method though...
Read more >sklearn.preprocessing.OrdinalEncoder
The handling of nan values was improved from Python 3.10 onwards, (c.f. bpo-43475). ... By default, OrdinalEncoder is lenient towards missing values by ......
Read more >Missing Values, Ordinal data and stories - Kaggle
When handling these null values we have to divide them into three categories. ... and then use an Ordinal Encoder to encode each...
Read more >scikit-learn : Data Preprocessing I - Missing/categorical data
Quite a few computational tools, however, are unable to handle such missing values and might produce unpredictable results. So, before we proceed with ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I wish the help wanted tag would disappear once a contributor adopts an issue…
I’m currently working on this issue-- but I think the best way to start is to review the contributing guidlines. And when you see an issue no one is working on, ask the member who submitted the issue if you can get started. (I’m fairly new to this project myself).