question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Handle missing values in OrdinalEncoder

See original GitHub issue

A 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:open
  • Created 5 years ago
  • Reactions:1
  • Comments:10 (7 by maintainers)

github_iconTop GitHub Comments

4reactions
CatChenalcommented, Sep 29, 2018

I wish the help wanted tag would disappear once a contributor adopts an issue…

3reactions
maxcopelandcommented, Sep 8, 2018

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).

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found