title: TypeError: zip argument #2 must support iteration
body: <p>I got an error TypeError: zip argument #2 must support iteration.</p>
  
  <pre><code>data = libraries.pd.read_csv('a.csv',header=1, parse_dates=True)
  datas = DataCleaning.DataCleaning(data)
  datas.cleaning(media)
  
  calDf = datas.getDatas()
  
  array_x = libraries.np.int32(libraries.np.zeros(len(calDf)))
  array_y = libraries.np.int32(libraries.np.zeros(len(calDf)))
  
  
  if len(calDf) &gt; 1:
      for num in range(len(calDf)):
          array_x[num] = calDf.iloc[num,0]
          array_y[num] = calDf.iloc[num,1]
  
      def nonlinear_fit(x,a,b):
          return  b * libraries.np.exp(x / (a+x))
  
      prameter_initial = libraries.np.array([0,0])
  
      try:
          param, cov = libraries.curve_fit(nonlinear_fit, array_x, array_y, maxfev=5000)
  
      except RuntimeError:
          print("Error - curve_fit failed")
  
  li_result = []
  li_result = zip(y, array_x, array_y)
  </code></pre>
  
  <p>I think the part of <code>zip(y, array_x, array_y)</code> is wrong because zip's arguments are not list type,so I wrote</p>
  
  <pre><code>for i in y:
   li_result = []
   li_result = zip(y, array_x[i], array_y[i])
  </code></pre>
  
  <p>but I got an error,</p>
  
  <pre><code>li_result = zip(y, array_x[i], array_y[i])
  </code></pre>
  
  <pre class="lang-none prettyprint-override"><code>IndexError: only integers, slices (`:`), ellipsis (`...`),
  numpy.newaxis (`None`) and integer or boolean arrays are valid indices
  </code></pre>
  
  <p>So, I cannot understand how to fix this.
  What should I do?</p>