title: How to output Classification Report of Sklearn into a csv file?
body: <p>Does anyone know is there anyway to output the classification report as the text file or CSV file?</p>
  <p>This line <code>print(metrics.classification_report(y_test, y_pred))</code> in python gives me the classification report. I want to have this report in <code>csv</code> format.</p>
  <p>I tried to copy and paste but the the columns would be lumped together! Any help appreciated!</p>