diff --git a/Citizen_Science_Testing.ipynb b/Citizen_Science_Testing.ipynb index fb48c57..1d511b5 100644 --- a/Citizen_Science_Testing.ipynb +++ b/Citizen_Science_Testing.ipynb @@ -462,7 +462,19 @@ "# You don't need to be the project owner.\n", "print('Retrieve the classifications from Zooniverse')\n", "project_id = 19539\n", - "df = cit_sci_pipeline.retrieve_data(project_id)\n", + "raw_clas_data = cit_sci_pipeline.retrieve_data(project_id)\n", + "\n", + "counter = 0\n", + "list_rows = []\n", + "# If the following line throws an error, restart the kernel and rerun the cell.\n", + "for row in raw_clas_data:\n", + " if counter == 0:\n", + " header = row\n", + " else:\n", + " list_rows.append(row)\n", + " counter += 1\n", + " \n", + "df = utils.pandas.DataFrame(list_rows, columns=header)\n", "df" ] },