2024-02-28 02:52:06 +01:00
|
|
|
{
|
|
|
|
"cells": [
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
2024-02-28 02:57:28 +01:00
|
|
|
"execution_count": 3,
|
2024-02-28 02:52:06 +01:00
|
|
|
"id": "0eefb67b-5399-44fa-9c1c-7724ec1c7cd2",
|
|
|
|
"metadata": {},
|
|
|
|
"outputs": [],
|
2024-02-28 02:57:28 +01:00
|
|
|
"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)"
|
|
|
|
]
|
2024-02-28 02:52:06 +01:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"metadata": {
|
|
|
|
"kernelspec": {
|
|
|
|
"display_name": "Python 3 (ipykernel)",
|
|
|
|
"language": "python",
|
|
|
|
"name": "python3"
|
|
|
|
},
|
|
|
|
"language_info": {
|
|
|
|
"codemirror_mode": {
|
|
|
|
"name": "ipython",
|
|
|
|
"version": 3
|
|
|
|
},
|
|
|
|
"file_extension": ".py",
|
|
|
|
"mimetype": "text/x-python",
|
|
|
|
"name": "python",
|
|
|
|
"nbconvert_exporter": "python",
|
|
|
|
"pygments_lexer": "ipython3",
|
|
|
|
"version": "3.11.6"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"nbformat": 4,
|
|
|
|
"nbformat_minor": 5
|
|
|
|
}
|