Answers for "how to replace nan values with mode of string in python"

0

python fillna with mode

data['Native Country'] = data['Native Country'].fillna(data['Native Country'].mode()[0])
Posted by: Guest on August-03-2020

Code answers related to "how to replace nan values with mode of string in python"

Python Answers by Framework

Browse Popular Code Answers by Language