Home › Interview Questions › Have you written it in the code? Can you show me w…

Have you written it in the code? Can you show me which line?

🟢 Easy Debugging Junior level
1Times asked
Sep 2026Last seen
Sep 2026First seen

💡 Model Answer

Yes, I added the null‑value handling in the code. The relevant line is: df['salary'].fillna(df['salary'].median(), inplace=True). This line replaces all NaNs in the salary column with the median salary, ensuring the dataset remains usable for downstream analysis.

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