title: ValueError: arrays must all be same length in python using pandas DataFrame
body: <p>I'm a newbie in python and using Dataframe from pandas package (python3.6).</p>
  
  <p>I set it up like below code,</p>
  
  <pre><code>df = DataFrame({'list1': list1, 'list2': list2, 'list3': list3, 'list4': list4, 'list5': list5, 'list6': list6})
  </code></pre>
  
  <p>and it gives an error like <code>ValueError: arrays must all be same length</code></p>
  
  <p>So I checked all the length of arrays, and <code>list1</code> &amp; <code>list2</code> have 1 more data than other lists. If I want to add 1 data to those other 4 lists(<code>list3</code>, <code>list4</code>, <code>list5</code>, <code>list6</code>) by using <code>pd.resample</code>, then how should I write code...?</p>
  
  <p>Also, those lists are time series list with 1 minute.</p>
  
  <p>Does anybody have an idea or help me out here?</p>
  
  <p>Thanks in advance.</p>
  
  <p><strong>EDIT</strong>
  So I changed as what EdChum said.
  and added time list at the front. it is like below.</p>
  
  <pre><code>2017-04-01 0:00 895.87  730 12.8    4   19.1    380
  2017-04-01 0:01 894.4   730 12.8    4   19.1    380
  2017-04-01 0:02 893.08  730 12.8    4   19.3    380
  2017-04-01 0:03 890.41  730 12.8    4   19.7    380
  2017-04-01 0:04 889.28  730 12.8    4   19.93   380
  </code></pre>
  
  <p>and I typed code like</p>
  
  <pre><code>df.resample('1min', how='mean', fill_method='pad')
  </code></pre>
  
  <p>And it gives me this error: <code>TypeError: Only valid with DatetimeIndex, TimedeltaIndex or PeriodIndex, but got an instance of 'RangeIndex'</code></p>