title: MICE implementation in python
body: <p>I am trying to use MICE implementation using the following link: </p>
  
  <p><a href="https://stackoverflow.com/questions/45321406/missing-value-imputation-in-python-using-knn">Missing value imputation in python using KNN</a></p>
  
  <pre><code>from fancyimpute import MICE as MICE
  df_complete=MICE().complete(df_train)
  </code></pre>
  
  <p>I am getting following error:</p>
  
  <blockquote>
    <p>ufunc 'isnan' not supported for the input types, and the inputs could not be safely coerced to any supported types according to the casting rule ''safe''</p>
  </blockquote>
  
  <p>On the link also, it says that they have replaced with NaN. I am not sure what does it mean? I have already tried: <code>df_train.isnull(np.array([np.nan, 0], dtype=float))</code> but it is not helping either.</p>