title: TypeError: train_test_split() got an unexpected keyword argument 'test_size'
body: <p>I'm trying to find the best feature set using random forest approach
  I need to split the dataset into test and train. here is my code</p>
  
  <pre><code>from sklearn.model_selection import train_test_split
  
  def train_test_split(x,y):
      # split data train 70 % and test 30 %
      x_train, x_test, y_train, y_test = train_test_split(x, y,train_size=0.3,random_state=42)
      #normalization
      x_train_N = (x_train-x_train.mean())/(x_train.max()-x_train.min())
      x_test_N = (x_test-x_test.mean())/(x_test.max()-x_test.min())
  
  train_test_split(data,data_y)
  </code></pre>
  
  <p>parameters data,data_y are parsing correctly.
  But I'm getting the following error. I couldn't figure out why this is.</p>
  
  <p><a href="https://i.stack.imgur.com/ZYV3D.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ZYV3D.png" alt="enter image description here"></a></p>