diff --git a/notebooks/01-plotting_intro.ipynb b/notebooks/01-plotting_intro.ipynb index e11c8e8..f302377 100644 --- a/notebooks/01-plotting_intro.ipynb +++ b/notebooks/01-plotting_intro.ipynb @@ -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",