From 7503f26aeb9401692cd30b91e86cc469395f781d Mon Sep 17 00:00:00 2001 From: Eric Rosas Date: Mon, 18 Sep 2023 13:25:34 -0600 Subject: [PATCH] Added code to clas. cell to render panda df EPO-8485 --- Citizen_Science_Testing.ipynb | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) 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" ] },