title: Error "'numpy.ndarray' object has no attribute 'values'"
body: <p>I want to shift my time series data, but I am getting the following error:</p>
  <blockquote>
  <p>AttributeError: 'numpy.ndarray' object has no attribute 'values'</p>
  </blockquote>
  <p>This is my code:</p>
  <pre><code>def create_dataset(datasets):
      #series = dataset
      temps = DataFrame(datasets.values)
      dataframes = concat(
          [temps, temps.shift(-1), temps.shift(-2), temps.shift(-3)], axis=1)
      lala = numpy.array(dataframes)
      return lala
  
      # Load
      dataframe = pandas.read_csv('zahlenreihe.csv', index_col=False,
      engine='python', header=None)
      dataset = dataframe.values
      dataset = dataset.astype('float32')
  
      # Split
      train_size = int(len(dataset) * 0.70)
      test_size = len(dataset) - train_size
      train, test = dataset[0:train_size,:], dataset[train_size:len(dataset),:]
  
      # Create
      trainX = create_dataset(train)
  </code></pre>
  <p>I think the following line is wrong:</p>
  <pre><code>temps = DataFrame(datasets.values)
  </code></pre>
  <p>My <em>zahlenreihe.csv</em> file (<em>number sequence</em>) just has integers ordered like:</p>
  <pre class="lang-none prettyprint-override"><code>1
  2
  3
  4
  5
  n
  </code></pre>
  <p>How should I handle it?</p>