diff --git a/code_valeur manquante.ipynb b/code_valeur manquante.ipynb index d37e139..5ef2b81 100644 --- a/code_valeur manquante.ipynb +++ b/code_valeur manquante.ipynb @@ -29,7 +29,7 @@ }, { "cell_type": "code", - "execution_count": 6, + "execution_count": 28, "id": "b6035982-9ff4-4013-9792-2d50e10db3d1", "metadata": {}, "outputs": [ @@ -66,7 +66,7 @@ " 'bdc2324-data/1/1type_ofs.csv']" ] }, - "execution_count": 6, + "execution_count": 28, "metadata": {}, "output_type": "execute_result" } @@ -94,7 +94,7 @@ }, { "cell_type": "code", - "execution_count": 8, + "execution_count": 3, "id": "f6d0b27c-0ecd-406b-b042-6c3802dd68fd", "metadata": {}, "outputs": [ @@ -102,7 +102,7 @@ "name": "stderr", "output_type": "stream", "text": [ - "/tmp/ipykernel_438/1008972637.py:5: DtypeWarning: Columns (1) have mixed types. Specify dtype option on import or set low_memory=False.\n", + "/tmp/ipykernel_425/1008972637.py:5: DtypeWarning: Columns (1) have mixed types. Specify dtype option on import or set low_memory=False.\n", " globals()[nom_base] = pd.read_csv(file_in, sep=\",\")\n" ] } @@ -117,7 +117,7 @@ }, { "cell_type": "code", - "execution_count": 9, + "execution_count": 4, "id": "2a6b5e22-3370-457f-83b7-dd1e13663229", "metadata": {}, "outputs": [ @@ -127,7 +127,7 @@ "'bdc2324-data/1/1type_ofs.csv'" ] }, - "execution_count": 9, + "execution_count": 4, "metadata": {}, "output_type": "execute_result" } @@ -1689,7 +1689,7 @@ }, { "cell_type": "code", - "execution_count": 10, + "execution_count": 5, "id": "d22a0d75-53c5-4b54-9060-c9e7c307fb13", "metadata": {}, "outputs": [], @@ -1700,7 +1700,7 @@ }, { "cell_type": "code", - "execution_count": 11, + "execution_count": 6, "id": "7c229dad-6ebd-4f43-99f1-fb330dc29466", "metadata": {}, "outputs": [ @@ -1736,7 +1736,7 @@ " 'bdc2324-data/2/2tickets.csv']" ] }, - "execution_count": 11, + "execution_count": 6, "metadata": {}, "output_type": "execute_result" } @@ -1748,7 +1748,7 @@ }, { "cell_type": "code", - "execution_count": 12, + "execution_count": 7, "id": "df3d3548-3d76-4f07-afa1-e240932bc1c7", "metadata": {}, "outputs": [], @@ -1758,7 +1758,7 @@ }, { "cell_type": "code", - "execution_count": 13, + "execution_count": 8, "id": "90f8d5fc-43f3-4f36-b8cc-89a41785f032", "metadata": {}, "outputs": [ @@ -1766,7 +1766,7 @@ "name": "stderr", "output_type": "stream", "text": [ - "/tmp/ipykernel_438/673681459.py:5: DtypeWarning: Columns (20) have mixed types. Specify dtype option on import or set low_memory=False.\n", + "/tmp/ipykernel_425/673681459.py:5: DtypeWarning: Columns (20) have mixed types. Specify dtype option on import or set low_memory=False.\n", " globals()[nom_base] = pd.read_csv(file_in, sep=\",\")\n" ] } @@ -1781,7 +1781,7 @@ }, { "cell_type": "code", - "execution_count": 14, + "execution_count": 9, "id": "3e39a584-e02b-41b2-831c-33b920e298e9", "metadata": {}, "outputs": [ @@ -1791,7 +1791,7 @@ "27" ] }, - "execution_count": 14, + "execution_count": 9, "metadata": {}, "output_type": "execute_result" } @@ -1802,7 +1802,7 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 10, "id": "2b6c6f65", "metadata": {}, "outputs": [], @@ -1835,7 +1835,7 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 11, "id": "06759646-9419-4841-b12f-bbfceb417f3a", "metadata": {}, "outputs": [], @@ -1868,10 +1868,42 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 12, "id": "0960daa8", "metadata": {}, - "outputs": [], + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Base de données: Base1\n", + " ProportionValeursManquantes\n", + "id 0.00%\n", + "campaign_id 0.00%\n", + "customer_id 0.00%\n", + "opened_at 68.67%\n", + "sent_at 0.00%\n", + "delivered_at 1.61%\n", + "created_at 0.00%\n", + "updated_at 0.00%\n", + "\n", + "Base de données: Base2\n", + " ProportionValeursManquantes\n", + "id 0.00%\n", + "name 0.00%\n", + "service_id 0.00%\n", + "created_at 0.00%\n", + "updated_at 0.00%\n", + "process_id 100.00%\n", + "report_url 100.00%\n", + "category 0.00%\n", + "to_be_synced 0.00%\n", + "identifier 0.00%\n", + "sent_at 0.00%\n", + "\n" + ] + } + ], "source": [ "# Exemple d'utilisation\n", "\n", @@ -1887,10 +1919,343 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 13, "id": "77dc02bb", "metadata": {}, - "outputs": [], + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Base de données: campaign_stats\n", + " ProportionValeursManquantes\n", + "id 0.00%\n", + "campaign_id 0.00%\n", + "customer_id 0.00%\n", + "opened_at 68.67%\n", + "sent_at 0.00%\n", + "delivered_at 1.61%\n", + "created_at 0.00%\n", + "updated_at 0.00%\n", + "\n", + "Base de données: campaigns\n", + " ProportionValeursManquantes\n", + "id 0.00%\n", + "name 0.00%\n", + "service_id 0.00%\n", + "created_at 0.00%\n", + "updated_at 0.00%\n", + "process_id 100.00%\n", + "report_url 100.00%\n", + "category 0.00%\n", + "to_be_synced 0.00%\n", + "identifier 0.00%\n", + "sent_at 0.00%\n", + "\n", + "Base de données: categories\n", + " ProportionValeursManquantes\n", + "id 0.00%\n", + "name 100.00%\n", + "created_at 0.00%\n", + "updated_at 0.00%\n", + "extra_field 100.00%\n", + "quota 100.00%\n", + "identifier 0.00%\n", + "\n", + "Base de données: contribution_sites\n", + " ProportionValeursManquantes\n", + "id 0.00%\n", + "identifier 0.00%\n", + "facility_id 0.00%\n", + "created_at 0.00%\n", + "updated_at 0.00%\n", + "\n", + "Base de données: contributions\n", + " ProportionValeursManquantes\n", + "id 0.00%\n", + "sent_at 0.00%\n", + "software 100.00%\n", + "satisfaction 39.65%\n", + "extra_field 100.00%\n", + "customer_id 0.00%\n", + "contribution_site_id 0.00%\n", + "created_at 0.00%\n", + "updated_at 0.00%\n", + "identifier 0.00%\n", + "\n", + "Base de données: countries\n", + " ProportionValeursManquantes\n", + "id 0.00%\n", + "name 1.63%\n", + "code 0.41%\n", + "created_at 0.00%\n", + "updated_at 0.00%\n", + "identifier 0.00%\n", + "\n", + "Base de données: currencies\n", + " ProportionValeursManquantes\n", + "id 0.00%\n", + "name 0.00%\n", + "created_at 0.00%\n", + "updated_at 0.00%\n", + "identifier 0.00%\n", + "\n", + "Base de données: customer_target_mappings\n", + " ProportionValeursManquantes\n", + "id 0.00%\n", + "customer_id 0.00%\n", + "target_id 0.00%\n", + "created_at 0.00%\n", + "updated_at 0.00%\n", + "name 100.00%\n", + "extra_field 100.00%\n", + "\n", + "Base de données: customersplus\n", + " ProportionValeursManquantes\n", + "id 0.00%\n", + "lastname 0.02%\n", + "firstname 0.01%\n", + "birthdate 96.75%\n", + "email 1.05%\n", + "street_id 0.00%\n", + "created_at 0.00%\n", + "updated_at 0.00%\n", + "civility 100.00%\n", + "is_partner 0.00%\n", + "extra 100.00%\n", + "deleted_at 100.00%\n", + "reference 100.00%\n", + "gender 0.00%\n", + "is_email_true 0.00%\n", + "extra_field 100.00%\n", + "identifier 0.00%\n", + "opt_in 0.00%\n", + "structure_id 97.57%\n", + "note 97.84%\n", + "profession 100.00%\n", + "language 46.16%\n", + "mcp_contact_id 100.00%\n", + "need_reload 0.00%\n", + "last_buying_date 12.58%\n", + "max_price 12.58%\n", + "ticket_sum 0.00%\n", + "average_price 12.58%\n", + "fidelity 0.00%\n", + "average_purchase_delay 12.58%\n", + "average_price_basket 12.58%\n", + "average_ticket_basket 12.58%\n", + "total_price 0.00%\n", + "preferred_category 100.00%\n", + "preferred_supplier 100.00%\n", + "preferred_formula 100.00%\n", + "purchase_count 0.00%\n", + "first_buying_date 12.58%\n", + "last_visiting_date 100.00%\n", + "zipcode 98.80%\n", + "country 97.64%\n", + "age 96.75%\n", + "tenant_id 0.00%\n", + "\n", + "Base de données: event_types\n", + " ProportionValeursManquantes\n", + "id 0.00%\n", + "name 0.00%\n", + "created_at 0.00%\n", + "updated_at 0.00%\n", + "fidelity_delay 0.00%\n", + "identifier 0.00%\n", + "\n", + "Base de données: events\n", + " ProportionValeursManquantes\n", + "id 0.00%\n", + "created_at 0.00%\n", + "updated_at 0.00%\n", + "season_id 0.00%\n", + "facility_id 0.00%\n", + "name 0.00%\n", + "event_type_id 0.00%\n", + "manual_added 0.00%\n", + "is_display 0.00%\n", + "event_type_key_id 0.00%\n", + "facility_key_id 0.00%\n", + "identifier 0.00%\n", + "\n", + "Base de données: facilities\n", + " ProportionValeursManquantes\n", + "id 0.00%\n", + "name 50.00%\n", + "created_at 0.00%\n", + "updated_at 0.00%\n", + "street_id 0.00%\n", + "fixed_capacity 100.00%\n", + "identifier 0.00%\n", + "\n", + "Base de données: link_stats\n", + " ProportionValeursManquantes\n", + "id 0.00%\n", + "clicked_at 0.00%\n", + "link_id 0.00%\n", + "customer_id 0.00%\n", + "created_at 0.00%\n", + "updated_at 0.00%\n", + "\n", + "Base de données: pricing_formulas\n", + " ProportionValeursManquantes\n", + "id 0.00%\n", + "name 0.00%\n", + "created_at 0.00%\n", + "updated_at 0.00%\n", + "extra_field 100.00%\n", + "identifier 0.00%\n", + "\n", + "Base de données: product_packs\n", + " ProportionValeursManquantes\n", + "id 0.00%\n", + "name 100.00%\n", + "type_of 0.00%\n", + "created_at 0.00%\n", + "updated_at 0.00%\n", + "identifier 0.00%\n", + "\n", + "Base de données: products\n", + " ProportionValeursManquantes\n", + "id 0.00%\n", + "amount 0.00%\n", + "is_full_price 0.00%\n", + "representation_id 0.00%\n", + "pricing_formula_id 0.00%\n", + "created_at 0.00%\n", + "updated_at 0.00%\n", + "category_id 0.00%\n", + "apply_price 0.00%\n", + "products_group_id 0.00%\n", + "product_pack_id 0.00%\n", + "extra_field 100.00%\n", + "amount_consumption 100.00%\n", + "identifier 0.00%\n", + "\n", + "Base de données: products_groups\n", + " ProportionValeursManquantes\n", + "id 0.00%\n", + "percent_price 0.00%\n", + "max_price 0.00%\n", + "min_price 0.00%\n", + "category_id 0.00%\n", + "pricing_formula_id 0.00%\n", + "representation_id 0.00%\n", + "created_at 0.00%\n", + "updated_at 0.00%\n", + "\n", + "Base de données: purchases\n", + " ProportionValeursManquantes\n", + "id 0.00%\n", + "purchase_date 0.00%\n", + "customer_id 0.00%\n", + "created_at 0.00%\n", + "updated_at 0.00%\n", + "number 0.00%\n", + "identifier 0.00%\n", + "\n", + "Base de données: representation_category_capacities\n", + " ProportionValeursManquantes\n", + "id 0.00%\n", + "created_at 0.00%\n", + "updated_at 0.00%\n", + "representation_id 0.00%\n", + "category_id 0.00%\n", + "expected_filling 100.00%\n", + "max_filling 100.00%\n", + "\n", + "Base de données: representations\n", + " ProportionValeursManquantes\n", + "id 0.00%\n", + "serial 100.00%\n", + "event_id 0.00%\n", + "created_at 0.00%\n", + "updated_at 0.00%\n", + "start_date_time 0.00%\n", + "open 0.00%\n", + "satisfaction 100.00%\n", + "end_date_time 0.00%\n", + "name 100.00%\n", + "is_display 0.00%\n", + "representation_type_id 100.00%\n", + "expected_filling 100.00%\n", + "max_filling 100.00%\n", + "extra_field 100.00%\n", + "identifier 0.00%\n", + "\n", + "Base de données: seasons\n", + " ProportionValeursManquantes\n", + "id 0.00%\n", + "name 0.00%\n", + "created_at 0.00%\n", + "updated_at 0.00%\n", + "start_date_time 100.00%\n", + "identifier 0.00%\n", + "\n", + "Base de données: structure_tag_mappings\n", + " ProportionValeursManquantes\n", + "id 0.00%\n", + "structure_id 0.00%\n", + "tag_id 0.00%\n", + "created_at 0.00%\n", + "updated_at 0.00%\n", + "\n", + "Base de données: suppliers\n", + " ProportionValeursManquantes\n", + "id 0.00%\n", + "name 20.00%\n", + "manually_added 0.00%\n", + "label 100.00%\n", + "itr 100.00%\n", + "updated_at 0.00%\n", + "created_at 0.00%\n", + "commission 100.00%\n", + "identifier 0.00%\n", + "\n", + "Base de données: tags\n", + " ProportionValeursManquantes\n", + "id 0.00%\n", + "name 50.00%\n", + "created_at 0.00%\n", + "updated_at 0.00%\n", + "identifier 0.00%\n", + "\n", + "Base de données: target_types\n", + " ProportionValeursManquantes\n", + "id 0.00%\n", + "is_import 25.00%\n", + "name 0.00%\n", + "created_at 0.00%\n", + "updated_at 0.00%\n", + "identifier 0.00%\n", + "\n", + "Base de données: targets\n", + " ProportionValeursManquantes\n", + "id 0.00%\n", + "target_type_id 0.00%\n", + "name 5.26%\n", + "created_at 0.00%\n", + "updated_at 0.00%\n", + "\n", + "Base de données: tickets\n", + " ProportionValeursManquantes\n", + "id 0.00%\n", + "number 0.00%\n", + "created_at 0.00%\n", + "updated_at 0.00%\n", + "purchase_id 0.00%\n", + "product_id 0.00%\n", + "is_from_subscription 0.00%\n", + "type_of 0.00%\n", + "supplier_id 0.00%\n", + "barcode 100.00%\n", + "identifier 0.00%\n", + "\n" + ] + } + ], "source": [ "# Exemple d'utilisation\n", "dict={'campaign_stats': campaign_stats,\n", @@ -1931,7 +2296,7 @@ }, { "cell_type": "code", - "execution_count": 1, + "execution_count": 14, "id": "60be9271", "metadata": {}, "outputs": [], @@ -2021,10 +2386,48 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 29, "id": "69b8f59a", "metadata": {}, - "outputs": [], + "outputs": [ + { + "data": { + "text/plain": [ + "['bdc2324-data/3/3campaign_stats.csv',\n", + " 'bdc2324-data/3/3campaigns.csv',\n", + " 'bdc2324-data/3/3categories.csv',\n", + " 'bdc2324-data/3/3consumptions.csv',\n", + " 'bdc2324-data/3/3contribution_sites.csv',\n", + " 'bdc2324-data/3/3contributions.csv',\n", + " 'bdc2324-data/3/3countries.csv',\n", + " 'bdc2324-data/3/3currencies.csv',\n", + " 'bdc2324-data/3/3customer_target_mappings.csv',\n", + " 'bdc2324-data/3/3customersplus.csv',\n", + " 'bdc2324-data/3/3event_types.csv',\n", + " 'bdc2324-data/3/3events.csv',\n", + " 'bdc2324-data/3/3facilities.csv',\n", + " 'bdc2324-data/3/3link_stats.csv',\n", + " 'bdc2324-data/3/3pricing_formulas.csv',\n", + " 'bdc2324-data/3/3product_packs.csv',\n", + " 'bdc2324-data/3/3products.csv',\n", + " 'bdc2324-data/3/3products_groups.csv',\n", + " 'bdc2324-data/3/3purchases.csv',\n", + " 'bdc2324-data/3/3representation_category_capacities.csv',\n", + " 'bdc2324-data/3/3representations.csv',\n", + " 'bdc2324-data/3/3seasons.csv',\n", + " 'bdc2324-data/3/3structure_tag_mappings.csv',\n", + " 'bdc2324-data/3/3suppliers.csv',\n", + " 'bdc2324-data/3/3tags.csv',\n", + " 'bdc2324-data/3/3target_types.csv',\n", + " 'bdc2324-data/3/3targets.csv',\n", + " 'bdc2324-data/3/3tickets.csv']" + ] + }, + "execution_count": 29, + "metadata": {}, + "output_type": "execute_result" + } + ], "source": [ "BUCKET = \"bdc2324-data/3\"\n", "fs.ls(BUCKET)" @@ -2033,6 +2436,22 @@ { "cell_type": "code", "execution_count": null, + "id": "8a842d0b-f341-4752-b624-3a339ef0fe1e", + "metadata": {}, + "outputs": [], + "source": [ + "# Chargement des données temporaires\n", + "BUCKET = \"projet-bdc2324-team1\"\n", + "FILE_KEY_S3 = \"0_Temp/Company 1 - Purchasing behaviour.csv\"\n", + "FILE_PATH_S3 = BUCKET + \"/\" + FILE_KEY_S3\n", + "\n", + "with fs.open(FILE_PATH_S3, mode=\"rb\") as file_in:\n", + " tickets_kpi = pd.read_csv(file_in, sep=\",\")" + ] + }, + { + "cell_type": "code", + "execution_count": 17, "id": "9b4c005f", "metadata": {}, "outputs": [], @@ -2042,10 +2461,21 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 20, "id": "aae542d6", "metadata": {}, - "outputs": [], + "outputs": [ + { + "name": "stderr", + "output_type": "stream", + "text": [ + "/tmp/ipykernel_425/4241072101.py:5: DtypeWarning: Columns (19,20) have mixed types. Specify dtype option on import or set low_memory=False.\n", + " globals()[nom_base] = pd.read_csv(file_in, sep=\",\")\n", + "/tmp/ipykernel_425/4241072101.py:5: DtypeWarning: Columns (1) have mixed types. Specify dtype option on import or set low_memory=False.\n", + " globals()[nom_base] = pd.read_csv(file_in, sep=\",\")\n" + ] + } + ], "source": [ "dic_base_ent3=['campaign_stats','campaigns','categories','consumptions','contribution_sites','contributions','countries','currencies','customer_target_mappings','customersplus','event_types','events','facilities','link_stats','pricing_formulas','product_packs','products','products_groups','purchases','representation_category_capacities','representations','seasons','structure_tag_mappings','suppliers','tags','target_types','targets','tickets']\n", "for nom_base in dic_base_ent2:\n", @@ -2056,40 +2486,374 @@ }, { "cell_type": "code", - "execution_count": null, - "id": "d4b2df76", + "execution_count": 21, + "id": "907c650c-df7e-4e5c-b3cb-6595be061e99", + "metadata": {}, + "outputs": [ + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
idnamecreated_atupdated_atfidelity_delayidentifier
060873journees des plantes2022-09-13 17:42:18.040557+02:002022-09-13 17:42:18.040557+02:003658568a64f69dd864539e7a682b03ef3a
160876parking2022-09-13 17:42:18.043821+02:002022-09-13 17:42:18.043821+02:00363ac156eead4ae6b40e9c498d532b4448
260997pass arc2022-09-13 18:04:38.812389+02:002022-09-13 18:04:38.812389+02:0036ddffce8b0a072d76a766097b34208482
361233paris pass museum2022-09-13 18:53:15.878739+02:002022-09-13 18:53:15.878739+02:0036394a376e43e498dccf8a448004f2aa84
460911spectacle noel2022-09-13 17:48:50.549760+02:002022-09-13 17:48:50.549760+02:0036a2b0f7c330d4c8d0338e6edf5ce4c81a
561007domaine + spect noel2022-09-13 18:07:25.121513+02:002022-09-13 18:07:25.121513+02:0036c65e9028b505dcfa71acef4e15f6e7be
662374patrivia2022-09-14 02:08:56.789118+02:002022-09-14 02:08:56.789118+02:00368db1f5c8774a8cf07542249278d7d778
772615NaN2023-08-14 06:20:26.491399+02:002023-08-14 06:20:26.491399+02:0036d41d8cd98f00b204e9800998ecf8427e
861011prestation annexe2022-09-13 18:07:25.126517+02:002022-09-13 18:07:25.126517+02:00362588ceebb05d3329f334687b8647887e
960877minibus2022-09-13 17:42:18.045141+02:002022-09-13 17:42:18.045141+02:0036397361c9c0dc82d911aa931223bd7a4e
1061708location espace2022-09-13 21:52:57.785694+02:002022-09-13 21:52:57.785694+02:00363738beebf604a960e016ffad6db1df74
1160931exposition2022-09-13 17:52:36.164774+02:002022-09-13 17:52:36.164774+02:003669033f19d53294c467d0fb7d3a4ad868
1260871domaine2022-09-13 17:42:18.037831+02:002022-09-13 17:42:18.037831+02:0036b81285860b791e63dee94559f0a9e8e4
1360878visite guidee2022-09-13 17:42:18.046593+02:002022-09-13 17:42:18.046593+02:00363474ed518d4fa7b86719680e70039ac2
1460875parc2022-09-13 17:42:18.042824+02:002022-09-13 17:42:18.042824+02:003641c16554f8160b3bd2a6b3809f309e27
1560870spectacle saison2022-09-13 17:42:18.028836+02:002022-09-13 17:42:18.028836+02:00367afdec36b66f94b67e813ac7d092ea0c
1660872domaine + spect saison2022-09-13 17:42:18.039515+02:002022-09-13 17:42:18.039515+02:0036ccd5dffaa070e9c7885ff3e9149f12f0
1760874supplement spectacle2022-09-13 17:42:18.041862+02:002022-09-13 17:42:18.041862+02:0036093d3e6b14b1ad33908a18522d02886b
1861203pique nique en blanc2022-09-13 18:44:16.813045+02:002022-09-13 18:44:16.813045+02:0036ff9a87979d4a564a1d2a1055a1aa186e
1961427restauration2022-09-13 19:26:41.906836+02:002022-09-13 19:26:41.906836+02:0036f1bcd494fa3171bf042e62c311157547
2060879animation culturelle2022-09-13 17:42:18.047567+02:002022-09-13 17:42:18.047567+02:003627b0b018dfa7301abffcb243a876e4c4
2161270ecurie2022-09-13 18:57:52.734356+02:002022-09-13 18:57:52.734356+02:0036a21e22a0d924104179b25069de927909
2260929domaine + spect ete2022-09-13 17:52:36.162726+02:002022-09-13 17:52:36.162726+02:00368bdc1d1d5fba2317af8c4d733d8206d7
2360910spectacle ete2022-09-13 17:48:50.548826+02:002022-09-13 17:48:50.548826+02:003644878d1fd6c7fe384274861294c59017
\n", + "
" + ], + "text/plain": [ + " id name created_at \\\n", + "0 60873 journees des plantes 2022-09-13 17:42:18.040557+02:00 \n", + "1 60876 parking 2022-09-13 17:42:18.043821+02:00 \n", + "2 60997 pass arc 2022-09-13 18:04:38.812389+02:00 \n", + "3 61233 paris pass museum 2022-09-13 18:53:15.878739+02:00 \n", + "4 60911 spectacle noel 2022-09-13 17:48:50.549760+02:00 \n", + "5 61007 domaine + spect noel 2022-09-13 18:07:25.121513+02:00 \n", + "6 62374 patrivia 2022-09-14 02:08:56.789118+02:00 \n", + "7 72615 NaN 2023-08-14 06:20:26.491399+02:00 \n", + "8 61011 prestation annexe 2022-09-13 18:07:25.126517+02:00 \n", + "9 60877 minibus 2022-09-13 17:42:18.045141+02:00 \n", + "10 61708 location espace 2022-09-13 21:52:57.785694+02:00 \n", + "11 60931 exposition 2022-09-13 17:52:36.164774+02:00 \n", + "12 60871 domaine 2022-09-13 17:42:18.037831+02:00 \n", + "13 60878 visite guidee 2022-09-13 17:42:18.046593+02:00 \n", + "14 60875 parc 2022-09-13 17:42:18.042824+02:00 \n", + "15 60870 spectacle saison 2022-09-13 17:42:18.028836+02:00 \n", + "16 60872 domaine + spect saison 2022-09-13 17:42:18.039515+02:00 \n", + "17 60874 supplement spectacle 2022-09-13 17:42:18.041862+02:00 \n", + "18 61203 pique nique en blanc 2022-09-13 18:44:16.813045+02:00 \n", + "19 61427 restauration 2022-09-13 19:26:41.906836+02:00 \n", + "20 60879 animation culturelle 2022-09-13 17:42:18.047567+02:00 \n", + "21 61270 ecurie 2022-09-13 18:57:52.734356+02:00 \n", + "22 60929 domaine + spect ete 2022-09-13 17:52:36.162726+02:00 \n", + "23 60910 spectacle ete 2022-09-13 17:48:50.548826+02:00 \n", + "\n", + " updated_at fidelity_delay \\\n", + "0 2022-09-13 17:42:18.040557+02:00 36 \n", + "1 2022-09-13 17:42:18.043821+02:00 36 \n", + "2 2022-09-13 18:04:38.812389+02:00 36 \n", + "3 2022-09-13 18:53:15.878739+02:00 36 \n", + "4 2022-09-13 17:48:50.549760+02:00 36 \n", + "5 2022-09-13 18:07:25.121513+02:00 36 \n", + "6 2022-09-14 02:08:56.789118+02:00 36 \n", + "7 2023-08-14 06:20:26.491399+02:00 36 \n", + "8 2022-09-13 18:07:25.126517+02:00 36 \n", + "9 2022-09-13 17:42:18.045141+02:00 36 \n", + "10 2022-09-13 21:52:57.785694+02:00 36 \n", + "11 2022-09-13 17:52:36.164774+02:00 36 \n", + "12 2022-09-13 17:42:18.037831+02:00 36 \n", + "13 2022-09-13 17:42:18.046593+02:00 36 \n", + "14 2022-09-13 17:42:18.042824+02:00 36 \n", + "15 2022-09-13 17:42:18.028836+02:00 36 \n", + "16 2022-09-13 17:42:18.039515+02:00 36 \n", + "17 2022-09-13 17:42:18.041862+02:00 36 \n", + "18 2022-09-13 18:44:16.813045+02:00 36 \n", + "19 2022-09-13 19:26:41.906836+02:00 36 \n", + "20 2022-09-13 17:42:18.047567+02:00 36 \n", + "21 2022-09-13 18:57:52.734356+02:00 36 \n", + "22 2022-09-13 17:52:36.162726+02:00 36 \n", + "23 2022-09-13 17:48:50.548826+02:00 36 \n", + "\n", + " identifier \n", + "0 58568a64f69dd864539e7a682b03ef3a \n", + "1 3ac156eead4ae6b40e9c498d532b4448 \n", + "2 ddffce8b0a072d76a766097b34208482 \n", + "3 394a376e43e498dccf8a448004f2aa84 \n", + "4 a2b0f7c330d4c8d0338e6edf5ce4c81a \n", + "5 c65e9028b505dcfa71acef4e15f6e7be \n", + "6 8db1f5c8774a8cf07542249278d7d778 \n", + "7 d41d8cd98f00b204e9800998ecf8427e \n", + "8 2588ceebb05d3329f334687b8647887e \n", + "9 397361c9c0dc82d911aa931223bd7a4e \n", + "10 3738beebf604a960e016ffad6db1df74 \n", + "11 69033f19d53294c467d0fb7d3a4ad868 \n", + "12 b81285860b791e63dee94559f0a9e8e4 \n", + "13 3474ed518d4fa7b86719680e70039ac2 \n", + "14 41c16554f8160b3bd2a6b3809f309e27 \n", + "15 7afdec36b66f94b67e813ac7d092ea0c \n", + "16 ccd5dffaa070e9c7885ff3e9149f12f0 \n", + "17 093d3e6b14b1ad33908a18522d02886b \n", + "18 ff9a87979d4a564a1d2a1055a1aa186e \n", + "19 f1bcd494fa3171bf042e62c311157547 \n", + "20 27b0b018dfa7301abffcb243a876e4c4 \n", + "21 a21e22a0d924104179b25069de927909 \n", + "22 8bdc1d1d5fba2317af8c4d733d8206d7 \n", + "23 44878d1fd6c7fe384274861294c59017 " + ] + }, + "execution_count": 21, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "event_types" + ] + }, + { + "cell_type": "code", + "execution_count": 27, + "id": "617f6e54-c2a4-4627-9b94-9644a4dace71", "metadata": {}, "outputs": [], "source": [ - "dict4={'campaign_stats': campaign_stats,\n", - " 'campaigns': campaigns,\n", - " 'categories': categories,\n", - " 'consumptions': consumptions,\n", - " 'contribution_sites': contribution_sites,\n", - " 'contributions': contributions,\n", - " 'countries': countries,\n", - " 'currencies': currencies,\n", - " 'customer_target_mappings': customer_target_mappings,\n", - " 'customersplus': customersplus,\n", - " 'event_types': event_types,\n", - " 'events': events,\n", - " 'facilities': facilities,\n", - " 'link_stats': link_stats,\n", - " 'pricing_formulas': pricing_formulas,\n", - " 'product_packs': product_packs,\n", - " 'products': products,\n", - " 'products_groups': products_groups,\n", - " 'purchases': purchases,\n", - " 'representation_category_capacities': representation_category_capacities,\n", - " 'representations': representations,\n", - " 'seasons': seasons,\n", - " 'structure_tag_mappings': structure_tag_mappings,\n", - " 'suppliers': suppliers,\n", - " 'tags': tags,\n", - " 'target_types': target_types,\n", - " 'targets': targets,\n", - " 'tickets': tickets}" + "entreprise_base=['bdc2324-data/1', 'bdc2324-data/2', 'bdc2324-data/3', 'bdc2324-data/4', 'bdc2324-data/5', 'bdc2324-data/6', 'bdc2324-data/7', 'bdc2324-data/8','bdc2324-data/9','bdc2324-data/10','bdc2324-data/11','bdc2324-data/12','bdc2324-data/13','bdc2324-data/14','bdc2324-data/101']" ] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "b4ce5f9e-7358-4c09-871b-45989f142e25", + "metadata": {}, + "outputs": [], + "source": [] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "7a0b081c-e0ad-49a8-af25-78b2dc3cdcb8", + "metadata": {}, + "outputs": [], + "source": [] } ], "metadata": { @@ -2108,7 +2872,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.11.4" + "version": "3.11.6" } }, "nbformat": 4,