From a7dfcddd35b691e4940e1a578d4566b95b0e5bb9 Mon Sep 17 00:00:00 2001 From: Sriniketh J <81156510+srini047@users.noreply.github.com> Date: Fri, 6 Oct 2023 15:34:27 +0530 Subject: [PATCH] fix: name cell --- JSON/JSON_Get_keys.ipynb | 39 +++++++++++++++++++++++++++------------ 1 file changed, 27 insertions(+), 12 deletions(-) diff --git a/JSON/JSON_Get_keys.ipynb b/JSON/JSON_Get_keys.ipynb index 8e6b2dc627..9260035b8b 100644 --- a/JSON/JSON_Get_keys.ipynb +++ b/JSON/JSON_Get_keys.ipynb @@ -41,7 +41,7 @@ "tags": [] }, "source": [ - "**Author:** [Firstname Lastname]()" + "**Author:** [Sriniketh Jayasendil](https://www.linkedin.com/in/sriniketh-jayasendil/)" ] }, { @@ -74,7 +74,9 @@ "tags": [] }, "source": [ - "**References:**\n- [JSON - Wikipedia](https://en.wikipedia.org/wiki/JSON)\n- [JSON - Tutorialspoint](https://www.tutorialspoint.com/json/index.htm)" + "**References:**\n", + "- [JSON - Wikipedia](https://en.wikipedia.org/wiki/JSON)\n", + "- [JSON - Tutorialspoint](https://www.tutorialspoint.com/json/index.htm)" ] }, { @@ -107,8 +109,10 @@ "papermill": {}, "tags": [] }, - "source": "import json", - "outputs": [] + "outputs": [], + "source": [ + "import json" + ] }, { "cell_type": "markdown", @@ -118,7 +122,8 @@ "tags": [] }, "source": [ - "### Setup variables\n- `json_file`: path to the JSON file" + "### Setup variables\n", + "- `json_file`: path to the JSON file" ] }, { @@ -129,8 +134,10 @@ "papermill": {}, "tags": [] }, - "source": "json_file = \"data.json\"", - "outputs": [] + "outputs": [], + "source": [ + "json_file = \"data.json\"" + ] }, { "cell_type": "markdown", @@ -173,8 +180,14 @@ "papermill": {}, "tags": [] }, - "source": "# Open JSON file\nwith open(json_file) as f:\n data = json.load(f)\n# List keys\nkeys = list(data.keys())", - "outputs": [] + "outputs": [], + "source": [ + "# Open JSON file\n", + "with open(json_file) as f:\n", + " data = json.load(f)\n", + "# List keys\n", + "keys = list(data.keys())" + ] }, { "cell_type": "markdown", @@ -206,8 +219,10 @@ "papermill": {}, "tags": [] }, - "source": "print(keys)", - "outputs": [] + "outputs": [], + "source": [ + "print(keys)" + ] }, { "cell_type": "markdown", @@ -249,4 +264,4 @@ }, "nbformat": 4, "nbformat_minor": 5 -} \ No newline at end of file +}