What would you use to fill null values in the salary column?
1Times asked
Sep 2026Last seen
Sep 2026First seen
💡 Model Answer
To fill null values in the salary column, I would typically use the column's mean or median, depending on the distribution. In Pandas, you can do: df['salary'].fillna(df['salary'].mean(), inplace=True). If the data is skewed, the median is safer. For a quick placeholder, you could also use a constant like 0 or a typical entry‑level salary.
This answer was generated by AI for study purposes. Use it as a starting point — personalize it with your own experience.
🎤 Get questions like this answered in real-time
Assisting AI listens to your interview, captures questions live, and gives you instant AI-powered answers on a discreet on-screen overlay.
Get Assisting AI — Starts at ₹500