title: ValueError: Found array with dim 3. Estimator expected <= 2. How to use it on Random Forest Regressor?
body: <p>I have uploaded by csv file and try to predict from whole csv file. The model I have use is Random Forest Regressor to predict. I cannot able to predict whole csv file geeting this ValueError: Found array with dim 3. Estimator expected &lt;= 2.</p>
  <pre><code>@app.route(&quot;/multiple&quot;,methods=[&quot;GET&quot;,&quot;POST&quot;])
  @cross_origin()
  def multiple():
  if request.method == 'POST':
      file=request.form[&quot;csvfile&quot;]
      with open(file) as csvfile:
          csv_reader=csv.reader(csvfile,delimiter=&quot;,&quot;)
          next(csv_reader,None) 
          data=[]
          for line in csv_reader:
              data.append(line)
              mul_prediction=model.predict([(np.array(data))])
              result=round(mul_prediction[0])
  </code></pre>