Ajout graphique evolution

This commit is contained in:
Antoine JOUBREL 2024-02-13 17:45:33 +00:00
parent 1b8b42a9b4
commit f2e6e55bdd
2 changed files with 417 additions and 105 deletions

View File

@ -1278,7 +1278,7 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 24, "execution_count": 44,
"id": "89dc9685-1de9-4ce3-a6c0-8d7f1931a951", "id": "89dc9685-1de9-4ce3-a6c0-8d7f1931a951",
"metadata": {}, "metadata": {},
"outputs": [ "outputs": [
@ -1517,7 +1517,7 @@
"[5 rows x 21 columns]" "[5 rows x 21 columns]"
] ]
}, },
"execution_count": 24, "execution_count": 44,
"metadata": {}, "metadata": {},
"output_type": "execute_result" "output_type": "execute_result"
} }
@ -1541,6 +1541,22 @@
"df1_products_purchased_reduced = df1_products_purchased[['ticket_id', 'customer_id', 'purchase_id' ,'event_type_id', 'supplier_name', 'purchase_date', 'type_of_ticket_name', 'amount', 'children', 'is_full_price', 'name_event_types', 'name_facilities', 'name_categories', 'name_events', 'name_seasons']]" "df1_products_purchased_reduced = df1_products_purchased[['ticket_id', 'customer_id', 'purchase_id' ,'event_type_id', 'supplier_name', 'purchase_date', 'type_of_ticket_name', 'amount', 'children', 'is_full_price', 'name_event_types', 'name_facilities', 'name_categories', 'name_events', 'name_seasons']]"
] ]
}, },
{
"cell_type": "code",
"execution_count": 45,
"id": "6d2d2aaa-3c28-4e74-88ec-db48830018f6",
"metadata": {},
"outputs": [],
"source": [
"#Exportation \n",
"BUCKET_OUT = \"projet-bdc2324-team1\"\n",
"FILE_KEY_OUT_S3 = \"0_Temp/Company 1 - Purchases.csv\"\n",
"FILE_PATH_OUT_S3 = BUCKET_OUT + \"/\" + FILE_KEY_OUT_S3\n",
"\n",
"with fs.open(FILE_PATH_OUT_S3, 'w') as file_out:\n",
" df1_products_purchased_reduced.to_csv(file_out, index = False)"
]
},
{ {
"cell_type": "markdown", "cell_type": "markdown",
"id": "d7c3668a-c016-4bd0-837e-04af328ff14f", "id": "d7c3668a-c016-4bd0-837e-04af328ff14f",

File diff suppressed because one or more lines are too long