title: I want to check if all values in one column of a dataset are bigger than the means of that column
body: <p>I want to check all values in a column against one value(means) of the same column and then split into two lists.</p>
  <pre><code>means = np.mean(X[0], axis=0)
  X = df.iloc[:, :4]
  </code></pre>
  <p>How can I check if values of X[0] are &lt;= or &gt; than the mean and split these values into two?</p>
  <pre><code>print(X.head(5))
  print(np.mean(X[0].head(5),axis=0))
  </code></pre>
  <p><a href="https://i.stack.imgur.com/mlVEi.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/mlVEi.png" alt="Output from code above:" /></a></p>