On line 20, the input of missing_value should be np.nan. This is the default of this function in the newest version of sklearn.