We have a DataFrame with the number of heroes in cities. We can encode the names of heroes according to ordinal encoding in the following way:
Preprocessing categorical features with pandas
Ordinal encoding
Report a typo
Select one option from the list
___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.