From a7c72391e89c64f5f9be9c80f750cd5437a3c847 Mon Sep 17 00:00:00 2001 From: Steve Nyemba Date: Fri, 26 Jul 2024 17:49:39 -0500 Subject: [PATCH] s3 notebook - code as documentation --- notebooks/s3.ipynb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/notebooks/s3.ipynb b/notebooks/s3.ipynb index 1009120..c3952cb 100644 --- a/notebooks/s3.ipynb +++ b/notebooks/s3.ipynb @@ -6,12 +6,12 @@ "source": [ "#### Writing to AWS S3\n", "\n", - "We have setup our demo environment with the label **aws** passed to reference our s3 access_key and secret_key and file. In the cell below we will write the data to our aws s3 bucket named **com.phi.demo**" + "We have setup our demo environment with the label **aws** passed to reference our s3 access_key and secret_key and file (called friends.csv). In the cell below we will write the data to our aws s3 bucket named **com.phi.demo**" ] }, { "cell_type": "code", - "execution_count": 3, + "execution_count": 1, "metadata": {}, "outputs": [ { @@ -30,7 +30,7 @@ "from transport import providers\n", "import pandas as pd\n", "_data = pd.DataFrame({\"name\":['James Bond','Steve Rogers','Steve Nyemba'],'age':[55,150,44]})\n", - "mgw = transport.get.writer(label='aws',file='friends.csv',bucket='com.phi.demo')\n", + "mgw = transport.get.writer(label='aws')\n", "mgw.write(_data)\n", "print (transport.__version__)" ] @@ -54,7 +54,7 @@ }, { "cell_type": "code", - "execution_count": 17, + "execution_count": 2, "metadata": {}, "outputs": [ { @@ -79,7 +79,7 @@ "def cast(stream) :\n", " print (stream)\n", " return pd.DataFrame(str(stream))\n", - "mgr = transport.get.reader(label='aws', bucket='com.phi.demo',file='friends.csv')\n", + "mgr = transport.get.reader(label='aws')\n", "_df = mgr.read()\n", "print (_df)\n", "print ('--------- STATISTICS ------------')\n",