title: TypeError : 'method' object is not subscriptable
body: <p>The error i have is this:
  TypeError: 'method' object is not subscriptable</p>
  
  <pre><code>      pd.DataFrame({'Pokemon_name':test.Pokemon_name,'CP':new_pred_class}).set_index['Pokemon_name'].to_csv['new_pred_cp.csv']
  </code></pre>
  
  <p>Im trying to write the results to a new csv file.</p>