Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. Data Science
  3. Question
Data Science

How to fill missing values in a dataset with a desired input using pandas?

Asked by Ranjana Admin Jan 15, 2020 1.9K views 2 answers
Share

Your answer

2 Answers

Walmartone Latest answer

Answered on Mar 25, 2025

Your approach is correct! Using df.fillna('FILL') is a simple and effective way to replace null values with a specific string. If you want to modify the DataFrame in place, you can use df.fillna('FILL', inplace=True). Keep up the great work with pandas! WalmartOne 

Was this helpful?

More Data Science discussions

Learn & Explore

Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.

Latest Data Science Blogs

Guides, tips and career advice on Data Science from JanBask experts.