fill mode to blank values pandas code example
Example 1: python fillna with mode
data['Native Country'] = data['Native Country'].fillna(data['Native Country'].mode()[0])
Example 2: pandas nan values in column
df['your column name'].isnull()
data['Native Country'] = data['Native Country'].fillna(data['Native Country'].mode()[0])
df['your column name'].isnull()