Ajout exploration

This commit is contained in:
Antoine JOUBREL 2024-03-04 22:30:25 +00:00
parent 6e5383f594
commit 71a5cb2a3e
3 changed files with 1225 additions and 1031 deletions

View File

@ -107,7 +107,7 @@ def customerplus_kpi_function(customerplus_clean = None):
customerplus_clean["country_fr"] = customerplus_clean["country"].apply(lambda x : int(x=="fr") if pd.notna(x) else np.nan) customerplus_clean["country_fr"] = customerplus_clean["country"].apply(lambda x : int(x=="fr") if pd.notna(x) else np.nan)
# Dummy if the customer has a structure id (tags) # Dummy if the customer has a structure id (tags)
customerplus_clean['has_tags'] = customerplus_clean['structure_id'].apply(lambda x: 1 if not pd.isna(x) else 0) # customerplus_clean['has_tags'] = customerplus_clean['structure_id'].apply(lambda x: 1 if not pd.isna(x) else 0)
return customerplus_clean return customerplus_clean

File diff suppressed because one or more lines are too long

View File

@ -96,9 +96,7 @@
{ {
"cell_type": "markdown", "cell_type": "markdown",
"id": "ca2c8b6a-4965-422e-ba7c-66423a464fc1", "id": "ca2c8b6a-4965-422e-ba7c-66423a464fc1",
"metadata": { "metadata": {},
"jp-MarkdownHeadingCollapsed": true
},
"source": [ "source": [
"## Base communes au types Musée" "## Base communes au types Musée"
] ]
@ -1877,14 +1875,6 @@
"nb_tickets_per_events" "nb_tickets_per_events"
] ]
}, },
{
"cell_type": "code",
"execution_count": null,
"id": "6a38ff60-b608-43a0-9e18-4cd2bcbcea70",
"metadata": {},
"outputs": [],
"source": []
},
{ {
"cell_type": "markdown", "cell_type": "markdown",
"id": "1ede9eaa-7f0a-4856-9349-b2747d6a4901", "id": "1ede9eaa-7f0a-4856-9349-b2747d6a4901",
@ -2878,9 +2868,11 @@
{ {
"cell_type": "markdown", "cell_type": "markdown",
"id": "80ae4c42", "id": "80ae4c42",
"metadata": {}, "metadata": {
"jp-MarkdownHeadingCollapsed": true
},
"source": [ "source": [
"## Exploration variables" "## Supplier"
] ]
}, },
{ {