We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Actually I wanna replace NaN with "mode" value of the variable. But the following code doesn't work.
# Your code here a = df.Embarked.mode() df.Embarked[df.Embarked.isna()].replace(a.values[0], inplace=True) df.Embarked[df.Embarked.isna()] >>>61 NaN 829 NaN Name: Embarked, dtype: object