I would like to understand if there is the possibility to encode the days of the week as a single numerical column to preserve the ordinal relationship between the days.
My task is a classification task.
So, something like this:
- Monday: 0
- Thrusday: 1
- Wednesday: 2
- Sunday: 6
I wouldn't use a one-hot encoding for this scenario because I would like to preserve the ordinal relationship between the days.
However, I don't know if this is an allowed approach or not.