Skip to content

Commit

Permalink
update notebook
Browse files Browse the repository at this point in the history
  • Loading branch information
FloraSauerbronn committed Jul 23, 2024
1 parent 61ad59c commit bed27ee
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion notebooks/01-plotting_intro.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,13 @@
"from IPython.display import HTML, display\n",
"\n",
"# Group by latitude and longitude\n",
"grouped = df.groupby([\"latitude\", \"longitude\"]).size().reset_index().drop(columns=0)\n",
"grouped = (\n",
" df\n",
" .groupby([\"latitude\", \"longitude\"])\n",
" .size()\n",
" .reset_index()\n",
" .drop(columns=0)\n",
")\n",
"\n",
"# Display unique latitude and longitude pairs in a scrollable table\n",
"unique_pairs = grouped[[\"latitude\", \"longitude\"]]\n",
Expand Down

0 comments on commit bed27ee

Please sign in to comment.