Continue with your mobile number
The fillna() method in Pandas is used to replace NaN values in a DataFrame. By passing df.median() as an argument to fillna(), we can replace missing values with the median value of each column. This approach is especially useful when missing values are suspected to deviate from the mean due to outliers, making median imputation a more robust choice. The Pandas fillna() method is highly flexible and frequently used in data cleaning to handle missing data without discarding rows or losing valuable information in other columns. Option A (df.fillna(df.mean())) is incorrect as it fills NaNs with the mean rather than the median. Option B (df.replace(df.median())) is incorrect because replace() is not used directly for filling NaN values. Option D (df.dropna(inplace=True)) is incorrect as it removes rows with NaNs instead of filling them. Option E (df.interpolate(method="median")) is incorrect as interpolate() does not directly support median filling.
366Â Â Â 276Â Â Â 196Â Â Â 126Â Â Â 66Â Â Â ?
21, 22, 48, 153, 628, ?
57 59 66 94 157 ?
...18, 32, 50, 82, 132, ?
38 18 16 28 ? 816
65    69   77 93  ?    189
8 6 2 ? -1 9.5
...8 9 22 75 316 ?
...6000Â Â Â Â Â Â 3191Â Â Â Â Â Â 5216Â Â Â Â Â Â 3847Â Â Â Â Â Â 4688Â Â Â Â Â Â 4247
6125       a             b  Â...
Study the given pattern carefully and select the number that can replace the question mark (?) in it.
4 7 6
15 ? 21
44 68 60