title: ValueError: Boolean array expected for the condition, not float64
body: <p>I am trying to set the target and then scale my features. However I am getting an error:</p>
  <pre><code># Set a variable (features) with the names of all the features BUT the target variable.
  
  X = data.drop(&quot;diagnosis_result&quot;,1)   #Feature Matrix
  y = data[&quot;diagnosis_result&quot;]          #Target Variable
  data.head()
  
  print(f&quot;The list of columns that represent features is:\n{X}&quot;)
  print(f&quot;So, we have {len(X)} dimensions in our feature vectors.&quot;)
  
  scaler = RobustScaler().fit(data[X])
  data[X] = scaler.transform(data[X]).round(2)
  
  print()
  data.head()
  </code></pre>