Maybe a mistake

However, be careful when applying this encoding strategy: using this integer representation leads downstream predictive models to assume that the values are ordered (0 < 1 < 2 < 3… for instance).

In the notebook above, data types are still object not integers.

Could you provide the snippet of code where the data providing the data, the output of the OrdinalEncoder is still an array with object dtype?

I am almost certain that the output is always numeric.