Skip to content

Commit

Permalink
Merge pull request #72 from lsst-epo/EPO-8485
Browse files Browse the repository at this point in the history
Added code to clas. cell to render panda df
  • Loading branch information
ericdrosas87 authored Sep 18, 2023
2 parents 75280c7 + 7503f26 commit 05575fc
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion Citizen_Science_Testing.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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"
]
},
Expand Down

0 comments on commit 05575fc

Please sign in to comment.