2025-11-14 16:27:55 +01:00
|
|
|
{
|
|
|
|
|
"cells": [
|
|
|
|
|
{
|
|
|
|
|
"cell_type": "code",
|
2025-12-04 09:48:07 +01:00
|
|
|
"execution_count": 1,
|
2025-11-14 16:27:55 +01:00
|
|
|
"id": "126c8a80-d9ad-4816-84f0-0c3d580f62c8",
|
|
|
|
|
"metadata": {},
|
|
|
|
|
"outputs": [],
|
|
|
|
|
"source": [
|
|
|
|
|
"import pandas as pd"
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"cell_type": "code",
|
2025-12-04 09:48:07 +01:00
|
|
|
"execution_count": 2,
|
2025-11-14 16:27:55 +01:00
|
|
|
"id": "ff2261fb-9516-4410-b42d-3acc8dc1a460",
|
|
|
|
|
"metadata": {},
|
|
|
|
|
"outputs": [],
|
|
|
|
|
"source": [
|
|
|
|
|
"import os\n",
|
|
|
|
|
"import s3fs\n",
|
|
|
|
|
"os.environ[\"AWS_ACCESS_KEY_ID\"] = 'N1DBJCHI7YTK9AVMG6XT'\n",
|
|
|
|
|
"os.environ[\"AWS_SECRET_ACCESS_KEY\"] = 'SRCPMh8a1eQxX6Z09GeDxZoD55MBpnkJzyBctLII'\n",
|
|
|
|
|
"os.environ[\"AWS_SESSION_TOKEN\"] = 'eyJhbGciOiJIUzUxMiIsInR5cCI6IkpXVCJ9.eyJhY2Nlc3NLZXkiOiJOMURCSkNISTdZVEs5QVZNRzZYVCIsImFjciI6IjAiLCJhbGxvd2VkLW9yaWdpbnMiOlsiKiJdLCJhdWQiOlsibWluaW8iLCJhY2NvdW50Il0sImF1dGhfdGltZSI6MTc2MzEzMTgzNiwiYXpwIjoib255eGlhLW1pbmlvIiwiZW1haWwiOiJzYXJhaC50aG91bXlyZUBlbnNhZS5mciIsImVtYWlsX3ZlcmlmaWVkIjp0cnVlLCJleHAiOjE3NjQzNDE0MzksImZhbWlseV9uYW1lIjoiVEhPVU1ZUkUiLCJnaXZlbl9uYW1lIjoiU2FyYWgiLCJncm91cHMiOlsiYmRjLWRhdGEiLCJiZGMtY2FybWlnbmFjLWczIl0sImlhdCI6MTc2MzEzMTgzOCwiaXNzIjoiaHR0cHM6Ly9hdXRoLmdyb3VwZS1nZW5lcy5mci9yZWFsbXMvZ2VuZXMiLCJqdGkiOiJkY2I2MWJiZi1lZjU4LTRhMTItOGYyZS1jYTI0ZmUyNTA2YzEiLCJuYW1lIjoiU2FyYWggVEhPVU1ZUkUiLCJwb2xpY3kiOiJzdHNvbmx5IiwicHJlZmVycmVkX3VzZXJuYW1lIjoic3Rob3VteXJlLWVuc2FlIiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbIm9mZmxpbmVfYWNjZXNzIiwiZGVmYXVsdC1yb2xlcy1nZW5lcyIsInVtYV9hdXRob3JpemF0aW9uIl19LCJyZXNvdXJjZV9hY2Nlc3MiOnsiYWNjb3VudCI6eyJyb2xlcyI6WyJtYW5hZ2UtYWNjb3VudCIsIm1hbmFnZS1hY2NvdW50LWxpbmtzIiwidmlldy1wcm9maWxlIl19fSwic2NvcGUiOiJvcGVuaWQgcHJvZmlsZSBlbWFpbCIsInNpZCI6ImQxMDI0NGVlLWE3ZDMtNDA5MC04ZDA3LWNlOWY3YjM5MDRkNCIsInN1YiI6ImVhYWVkN2QyLWM4MjYtNGIxNC05MzczLTYwYjNhODhlMWFiNiIsInR5cCI6IkJlYXJlciJ9.sLXOE8w930_dXU0yNWroaDvaTvcUUCONMcbgbKeMEduQebXQjOS7gEQxo-I7Q2oqLFb_dhg1zBlwx5VpNjyTMA'\n",
|
|
|
|
|
"os.environ[\"AWS_DEFAULT_REGION\"] = 'us-east-1'\n",
|
|
|
|
|
"fs = s3fs.S3FileSystem(\n",
|
|
|
|
|
" client_kwargs={'endpoint_url': 'https://'+'minio-simple.lab.groupe-genes.fr'},\n",
|
|
|
|
|
" key = os.environ[\"AWS_ACCESS_KEY_ID\"], \n",
|
|
|
|
|
" secret = os.environ[\"AWS_SECRET_ACCESS_KEY\"], \n",
|
|
|
|
|
" token = os.environ[\"AWS_SESSION_TOKEN\"])"
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"cell_type": "code",
|
2025-12-04 09:48:07 +01:00
|
|
|
"execution_count": 3,
|
2025-11-14 16:27:55 +01:00
|
|
|
"id": "dc546698-76dc-4eaf-b9e2-7602953bf8f5",
|
|
|
|
|
"metadata": {},
|
|
|
|
|
"outputs": [
|
|
|
|
|
{
|
|
|
|
|
"data": {
|
|
|
|
|
"text/html": [
|
|
|
|
|
"<div>\n",
|
|
|
|
|
"<style scoped>\n",
|
|
|
|
|
" .dataframe tbody tr th:only-of-type {\n",
|
|
|
|
|
" vertical-align: middle;\n",
|
|
|
|
|
" }\n",
|
|
|
|
|
"\n",
|
|
|
|
|
" .dataframe tbody tr th {\n",
|
|
|
|
|
" vertical-align: top;\n",
|
|
|
|
|
" }\n",
|
|
|
|
|
"\n",
|
|
|
|
|
" .dataframe thead th {\n",
|
|
|
|
|
" text-align: right;\n",
|
|
|
|
|
" }\n",
|
|
|
|
|
"</style>\n",
|
|
|
|
|
"<table border=\"1\" class=\"dataframe\">\n",
|
|
|
|
|
" <thead>\n",
|
|
|
|
|
" <tr style=\"text-align: right;\">\n",
|
|
|
|
|
" <th></th>\n",
|
|
|
|
|
" <th>Morningstar Global Asset Class</th>\n",
|
|
|
|
|
" <th>Morningstar Global Category</th>\n",
|
|
|
|
|
" <th>Morningstar Category</th>\n",
|
|
|
|
|
" <th>Combined Country</th>\n",
|
|
|
|
|
" <th>Combined Channel Type</th>\n",
|
|
|
|
|
" <th>Combined Type</th>\n",
|
|
|
|
|
" <th>Month/Year (Record Date)</th>\n",
|
|
|
|
|
" <th>Combined Net Assets</th>\n",
|
|
|
|
|
" <th>Combined Net Sales</th>\n",
|
|
|
|
|
" </tr>\n",
|
|
|
|
|
" </thead>\n",
|
|
|
|
|
" <tbody>\n",
|
|
|
|
|
" <tr>\n",
|
|
|
|
|
" <th>0</th>\n",
|
|
|
|
|
" <td>NaN</td>\n",
|
|
|
|
|
" <td>NaN</td>\n",
|
|
|
|
|
" <td>NaN</td>\n",
|
|
|
|
|
" <td>Luxembourg</td>\n",
|
|
|
|
|
" <td>Proprietary</td>\n",
|
|
|
|
|
" <td>Domestic</td>\n",
|
|
|
|
|
" <td>Jan 2015</td>\n",
|
|
|
|
|
" <td>11170000.0</td>\n",
|
|
|
|
|
" <td>799301.47</td>\n",
|
|
|
|
|
" </tr>\n",
|
|
|
|
|
" <tr>\n",
|
|
|
|
|
" <th>1</th>\n",
|
|
|
|
|
" <td>NaN</td>\n",
|
|
|
|
|
" <td>NaN</td>\n",
|
|
|
|
|
" <td>NaN</td>\n",
|
|
|
|
|
" <td>Luxembourg</td>\n",
|
|
|
|
|
" <td>Proprietary</td>\n",
|
|
|
|
|
" <td>Domestic</td>\n",
|
|
|
|
|
" <td>Feb 2015</td>\n",
|
|
|
|
|
" <td>21210000.0</td>\n",
|
|
|
|
|
" <td>8922456.46</td>\n",
|
|
|
|
|
" </tr>\n",
|
|
|
|
|
" <tr>\n",
|
|
|
|
|
" <th>2</th>\n",
|
|
|
|
|
" <td>NaN</td>\n",
|
|
|
|
|
" <td>NaN</td>\n",
|
|
|
|
|
" <td>NaN</td>\n",
|
|
|
|
|
" <td>Luxembourg</td>\n",
|
|
|
|
|
" <td>Proprietary</td>\n",
|
|
|
|
|
" <td>Domestic</td>\n",
|
|
|
|
|
" <td>Mar 2015</td>\n",
|
|
|
|
|
" <td>23670000.0</td>\n",
|
|
|
|
|
" <td>1718627.81</td>\n",
|
|
|
|
|
" </tr>\n",
|
|
|
|
|
" <tr>\n",
|
|
|
|
|
" <th>3</th>\n",
|
|
|
|
|
" <td>NaN</td>\n",
|
|
|
|
|
" <td>NaN</td>\n",
|
|
|
|
|
" <td>NaN</td>\n",
|
|
|
|
|
" <td>Luxembourg</td>\n",
|
|
|
|
|
" <td>Proprietary</td>\n",
|
|
|
|
|
" <td>Domestic</td>\n",
|
|
|
|
|
" <td>Apr 2015</td>\n",
|
|
|
|
|
" <td>22720000.0</td>\n",
|
|
|
|
|
" <td>-670097.35</td>\n",
|
|
|
|
|
" </tr>\n",
|
|
|
|
|
" <tr>\n",
|
|
|
|
|
" <th>4</th>\n",
|
|
|
|
|
" <td>NaN</td>\n",
|
|
|
|
|
" <td>NaN</td>\n",
|
|
|
|
|
" <td>NaN</td>\n",
|
|
|
|
|
" <td>Luxembourg</td>\n",
|
|
|
|
|
" <td>Proprietary</td>\n",
|
|
|
|
|
" <td>Domestic</td>\n",
|
|
|
|
|
" <td>May 2015</td>\n",
|
|
|
|
|
" <td>23550000.0</td>\n",
|
|
|
|
|
" <td>204625.93</td>\n",
|
|
|
|
|
" </tr>\n",
|
|
|
|
|
" </tbody>\n",
|
|
|
|
|
"</table>\n",
|
|
|
|
|
"</div>"
|
|
|
|
|
],
|
|
|
|
|
"text/plain": [
|
|
|
|
|
" Morningstar Global Asset Class Morningstar Global Category \\\n",
|
|
|
|
|
"0 NaN NaN \n",
|
|
|
|
|
"1 NaN NaN \n",
|
|
|
|
|
"2 NaN NaN \n",
|
|
|
|
|
"3 NaN NaN \n",
|
|
|
|
|
"4 NaN NaN \n",
|
|
|
|
|
"\n",
|
|
|
|
|
" Morningstar Category Combined Country Combined Channel Type Combined Type \\\n",
|
|
|
|
|
"0 NaN Luxembourg Proprietary Domestic \n",
|
|
|
|
|
"1 NaN Luxembourg Proprietary Domestic \n",
|
|
|
|
|
"2 NaN Luxembourg Proprietary Domestic \n",
|
|
|
|
|
"3 NaN Luxembourg Proprietary Domestic \n",
|
|
|
|
|
"4 NaN Luxembourg Proprietary Domestic \n",
|
|
|
|
|
"\n",
|
|
|
|
|
" Month/Year (Record Date) Combined Net Assets Combined Net Sales \n",
|
|
|
|
|
"0 Jan 2015 11170000.0 799301.47 \n",
|
|
|
|
|
"1 Feb 2015 21210000.0 8922456.46 \n",
|
|
|
|
|
"2 Mar 2015 23670000.0 1718627.81 \n",
|
|
|
|
|
"3 Apr 2015 22720000.0 -670097.35 \n",
|
|
|
|
|
"4 May 2015 23550000.0 204625.93 "
|
|
|
|
|
]
|
|
|
|
|
},
|
2025-12-04 09:48:07 +01:00
|
|
|
"execution_count": 3,
|
2025-11-14 16:27:55 +01:00
|
|
|
"metadata": {},
|
|
|
|
|
"output_type": "execute_result"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"source": [
|
|
|
|
|
"with fs.open('projet-bdc-data/carmignac/Data Modélisation/market data/broadridge_Global Market data MS.csv', 'rb') as f:\n",
|
|
|
|
|
" df = pd.read_csv(f)\n",
|
|
|
|
|
"\n",
|
|
|
|
|
"df.head()"
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"cell_type": "code",
|
|
|
|
|
"execution_count": null,
|
|
|
|
|
"id": "7494bffd-83b5-42e2-b17e-d04c90f3b59e",
|
|
|
|
|
"metadata": {},
|
|
|
|
|
"outputs": [],
|
|
|
|
|
"source": []
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"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",
|
2026-01-29 18:40:49 +01:00
|
|
|
"version": "3.13.11"
|
2025-11-14 16:27:55 +01:00
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"nbformat": 4,
|
|
|
|
|
"nbformat_minor": 5
|
|
|
|
|
}
|