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

858    Asked by ranjan_6399 in Data Science , Asked on Jan 15, 2020
Answered by Ranjana Admin

To fill a null values with something else, let us create a dataframe having some null values

import numpy as np

df = pd.DataFrame({'col1':[1,2,3,np.nan],




Now we will the null values with a string ‘FILL’


Your Answer


Parent Categories