Skip to content
Advertisement

Got Nan while mapping the values in dataframe

JavaScript

Got NaN instead of man&woman

What is wrong?

Advertisement

Answer

I think the type of gender is int, so this would fix your problem:

JavaScript

The output:

JavaScript
User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement