From 741bfbedb61ed1d21bcd30627840b3bb57e5555f Mon Sep 17 00:00:00 2001 From: asiripanich <17020181+asiripanich@users.noreply.github.com> Date: Sat, 23 Nov 2024 08:08:45 +1100 Subject: [PATCH] fix: pandas was not imported in the OSM example --- notebook/Create Network from OSM.ipynb | 31 +++++++++++++------------- 1 file changed, 16 insertions(+), 15 deletions(-) diff --git a/notebook/Create Network from OSM.ipynb b/notebook/Create Network from OSM.ipynb index 277df9e8..a0d7b313 100644 --- a/notebook/Create Network from OSM.ipynb +++ b/notebook/Create Network from OSM.ipynb @@ -13,16 +13,17 @@ }, { "cell_type": "code", - "execution_count": 8, + "execution_count": null, "metadata": {}, "outputs": [], "source": [ - "import osmnx as ox" + "import osmnx as ox\n", + "import pandas as pd" ] }, { "cell_type": "code", - "execution_count": 42, + "execution_count": null, "metadata": {}, "outputs": [], "source": [ @@ -31,7 +32,7 @@ }, { "cell_type": "code", - "execution_count": 117, + "execution_count": null, "metadata": {}, "outputs": [], "source": [ @@ -69,7 +70,7 @@ }, { "cell_type": "code", - "execution_count": 92, + "execution_count": null, "metadata": {}, "outputs": [], "source": [ @@ -85,7 +86,7 @@ }, { "cell_type": "code", - "execution_count": 95, + "execution_count": null, "metadata": {}, "outputs": [], "source": [ @@ -113,7 +114,7 @@ }, { "cell_type": "code", - "execution_count": 101, + "execution_count": null, "metadata": {}, "outputs": [], "source": [ @@ -145,7 +146,7 @@ }, { "cell_type": "code", - "execution_count": 104, + "execution_count": null, "metadata": {}, "outputs": [], "source": [ @@ -173,7 +174,7 @@ }, { "cell_type": "code", - "execution_count": 109, + "execution_count": null, "metadata": {}, "outputs": [], "source": [ @@ -197,7 +198,7 @@ }, { "cell_type": "code", - "execution_count": 110, + "execution_count": null, "metadata": {}, "outputs": [], "source": [ @@ -236,7 +237,7 @@ }, { "cell_type": "code", - "execution_count": 137, + "execution_count": null, "metadata": {}, "outputs": [], "source": [ @@ -265,7 +266,7 @@ }, { "cell_type": "code", - "execution_count": 151, + "execution_count": null, "metadata": { "vscode": { "languageId": "javascript" @@ -280,7 +281,7 @@ " 'y': 'Y',\n", " 'geometry': 'geometry',\n", "}\n", - "nodes_df = nodes.loc[:, list(column_rename_keep.keys())].rename(columns=column_rename_keep)\n", + "nodes_df = nodes.loc[:, list(column_rename_keep.keys())].rename(columns = column_rename_keep)\n", "nodes_df.head()" ] }, @@ -293,7 +294,7 @@ }, { "cell_type": "code", - "execution_count": 153, + "execution_count": null, "metadata": {}, "outputs": [], "source": [ @@ -321,7 +322,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.10.15" + "version": "3.9.20" } }, "nbformat": 4,