title: ValueError: Found input variables with inconsistent numbers of samples: [1454711, 0]
body: <p>Just trying to train my model but i am stuck at this error.</p>
  <pre><code>#Splitting the data
  X_train, X_test, y_train, y_test = train_test_split(tweets,labels, random_state=0)
  print (len(X_train),len(X_test),len(y_train),len(y_test))
  </code></pre>
  <p>which produces:</p>
  <pre><code>---------------------------------------------------------------------------
  ValueError                                Traceback (most recent call last)
  &lt;ipython-input-26-b1b63fa90541&gt; in &lt;module&gt;()
        1 #Splitting the data
  ----&gt; 2 X_train, X_test, y_train, y_test = train_test_split(tweets,labels, random_state=0)
        3 print (len(X_train),len(X_test),len(y_train),len(y_test))
  
  2 frames
  /usr/local/lib/python3.7/dist-packages/sklearn/utils/validation.py in check_consistent_length(*arrays)
      210     if len(uniques) &gt; 1:
      211         raise ValueError(&quot;Found input variables with inconsistent numbers of&quot;
  --&gt; 212                          &quot; samples: %r&quot; % [int(l) for l in lengths])
      213 
      214 
  
  ValueError: Found input variables with inconsistent numbers of samples: [1454711, 0]
  </code></pre>
  <p>I'm not getting how to fix it. Looking forward for suggestions to resolve this error.</p>