Answers for "replace na with mode in pandas dataframe"

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 "replace na with mode in pandas dataframe"

Python Answers by Framework

Browse Popular Code Answers by Language