-
-
Notifications
You must be signed in to change notification settings - Fork 310
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
Add DatetimeOrdinal #818
Comments
Thank you @michaelrussell4 I wasn't aware of this functionality. When would it be useful to map dates to ordinal numbers? Do I understand correctly that the cardinality of the variable will still be high after this representation? |
Here are some reasons why this method can be useful:
The high cardinality of this method does have to be accounted for, probably best with a max-min normalisation (British spelling just for you 😉). This technique isn't as popular as the DatetimeFeature extraction you currently have but I think it'd be worth considering adding. |
Thank you @michaelrussell4 We'll keep it on the radar :) If you want to give it a go, you are welcome! |
I surely will if I get a chance. Thanks for your work! |
It'd be nice to have the ability to convert datetime columns to ordinal values. The DatetimeFeatures is nice for when one wants to extract the year, month, day, etc., but sometimes it's desirable to have the date simply as an ordinal value.
Here's an example I've used in code before:
The text was updated successfully, but these errors were encountered: