Did you also try this on another platform? Does it work there? The script works fine on Ubuntu 22.04, with python 3.10 also I have the same bug in a github action environment with windows ...
One-Hot Encoding is a technique used in machine learning to represent categorical data as binary vectors. It is particularly useful when working with algorithms that require numerical input, as it ...