title: Error in classification report test set for machine learning with SVM in python
body: <p>I split the data into test and train sets both of which have the target values '0's and '1's. But after fitting and predicting with SVM the classification report states that there are Zero '0's in the test sample which is not true.</p>
  
  <pre><code>from sklearn.datasets import load_breast_cancer
  data = load_breast_cancer()
  df = pd.DataFrame(data = data['data'],columns=data['feature_names'])
  x = df
  y = data['target']
  xtrain,xtest,ytrain,ytest 
  = train_test_split(x,y,test_size=0.3,random_state=42)
  </code></pre>
  
  <p>As you can see below, the test has 0s and 1s but the support in the  classification report states that there aren't any 0s!</p>
  
  <p>!(<a href="https://i.imgur.com/wjEjIvX.png" rel="nofollow noreferrer">https://i.imgur.com/wjEjIvX.png</a>)</p>