title: TypeError: '(slice(0, 201617, 1), slice(None, None, None))' is an invalid key
body: <p>After reading the following data:</p>
  
  <pre><code>Head:
            Open       Close        High         Low       Volume   volume_adi   volume_obv  volume_obvm  ...  momentum_stoch  momentum_stoch_signal  momentum_wr  momentum_ao  others_dr  others_dlr  others_cr   nextClose
  0  118.940002  118.950996  119.015999  118.926003  3468.199951 -1468.002197     0.000000     0.000000  ...       27.777779              27.777779   -72.222221     0.000000  14.749734    0.000000   0.000000  118.948997
  1  118.954002  118.959000  118.974998  118.892998  3083.300049  1139.846680  3083.300049    -8.533334  ...       53.658535              35.663956   -46.341465     0.000000   0.008407    0.008407   0.006725  118.975998
  2  118.966003  118.975998  118.990997  118.922997  2914.600098  3508.808105  2914.600098   722.250000  ...       67.479675              48.897923   -32.520325     0.000000   0.014291    0.014290   0.021017  118.985001
  3  118.992996  118.985001  119.000000  118.967003  3088.800049  1909.547119  3088.800049  1195.560059  ...       74.796745              65.311653   -25.203253     0.000000   0.007565    0.007564   0.028583  118.987999
  4  118.987999  118.987999  119.001999  118.953003  3175.399902  1641.685669  3175.399902  1525.533325  ...       77.235771              73.170731   -22.764227    -0.001633   0.002521    0.002521   0.031105  118.984001
  </code></pre>
  
  <p>As this:</p>
  
  <pre><code>column_names = ['Open', 'Close', ... , 'others_cr', 'nextClose']
  dataset = pd.read_csv(dataset_path, names=column_names,
                        na_values = '?', comment='\t', index_col=False,
                        sep=',', skipinitialspace=True, skiprows=[1], dtype='float32')
  
  print('Head:\n {}'.format(dataset.head()))
  </code></pre>
  
  <p>I got the following error when trying to split the data and adding a new dimension like:</p>
  
  <pre><code>train_size = int(len(dataset) * 0.67)
  train_dataset = dataset[0:train_size,:]
  </code></pre>
  
  <p><strong>Error:</strong></p>
  
  <pre><code>TypeError: '(slice(0, 201617, 1), slice(None, None, None))' is an invalid key
  </code></pre>
  
  <p>Any help would be appreciated, thanks in advance.</p>