added open function
This commit is contained in:
parent
e522615a8f
commit
9a06cbe96f
|
@ -2,11 +2,45 @@
|
||||||
"cells": [
|
"cells": [
|
||||||
{
|
{
|
||||||
"cell_type": "code",
|
"cell_type": "code",
|
||||||
"execution_count": null,
|
"execution_count": 3,
|
||||||
"id": "0eefb67b-5399-44fa-9c1c-7724ec1c7cd2",
|
"id": "0eefb67b-5399-44fa-9c1c-7724ec1c7cd2",
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"outputs": [],
|
"outputs": [],
|
||||||
"source": []
|
"source": [
|
||||||
|
"import pandas as pd\n",
|
||||||
|
"import os\n",
|
||||||
|
"import s3fs\n",
|
||||||
|
"import warnings\n",
|
||||||
|
"from datetime import date, timedelta, datetime\n",
|
||||||
|
"import numpy as np"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"cell_type": "code",
|
||||||
|
"execution_count": 5,
|
||||||
|
"id": "37977b4e-42e7-4d8e-8b9a-6843292fd128",
|
||||||
|
"metadata": {},
|
||||||
|
"outputs": [],
|
||||||
|
"source": [
|
||||||
|
"# Import KPI construction functions\n",
|
||||||
|
"# exec(open('0_KPI_functions.py').read())\n",
|
||||||
|
"exec(open('../0_KPI_functions.py').read())\n"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"cell_type": "code",
|
||||||
|
"execution_count": null,
|
||||||
|
"id": "cca62d72-f809-41a9-bb06-1be7d6b09307",
|
||||||
|
"metadata": {},
|
||||||
|
"outputs": [],
|
||||||
|
"source": [
|
||||||
|
"# Create filesystem object\n",
|
||||||
|
"S3_ENDPOINT_URL = \"https://\" + os.environ[\"AWS_S3_ENDPOINT\"]\n",
|
||||||
|
"fs = s3fs.S3FileSystem(client_kwargs={'endpoint_url': S3_ENDPOINT_URL})\n",
|
||||||
|
"\n",
|
||||||
|
"BUCKET = \"bdc2324-data\"\n",
|
||||||
|
"fs.ls(BUCKET)"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"metadata": {
|
"metadata": {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user