Data can be filled using the labels of a Series or keys of a Python dictionary. This allows you to specify different fill values for different elements, based upon the value of the index label:
Only values of NaN are filled. Note that the values with label a are not changed.
Another common scenario is to fill all the NaN values in a column with the mean of the column:
This is convenient, as missing values replaced in ...