I want to find the most repetitive value (which is the mode) of a column of categorical data and fill the blank cells with this value.
"Embarked" column has only three values: S,Q,C
When I try to calculate mean and median it gives an error already, because its no numerical value, but I can take a mode of this column, when I try this part of code it doesn't give an error:
embarked=df_missing['Embarked']
df_missing['Embarked']=df_missing['Embarked'].fillna(embarked.mode())
But it also doesn't fill the empty cells. How can I find the mode of this column.