creation_bd_product_pricing

This commit is contained in:
Fanta RODRIGUE 2024-01-15 20:10:39 +00:00
parent dc2dadf7c3
commit bca7772ef7

View File

@ -217,6 +217,16 @@
"type_of_pricing_formulas.isna().sum()"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "83a6a48d-effe-4537-b4bb-d5a540b610f1",
"metadata": {},
"outputs": [],
"source": [
"#variable retenu:[[\"id\",\"type_of_id\",\"pricing_formula_id\"]]"
]
},
{
"cell_type": "code",
"execution_count": 7,
@ -521,6 +531,16 @@
"products_groups.isna().sum()"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "e0518684-c83c-4f0a-89ea-d7dcfd60051d",
"metadata": {},
"outputs": [],
"source": [
"#variable retenu:[[\"id\",\"percent_price\",\"max_price\",\"min_price\",\"category_id\",\"pricing_formula_id\",\"representation_id\"]]"
]
},
{
"cell_type": "code",
"execution_count": 11,
@ -841,6 +861,16 @@
"pricing_formulas.isna().sum()/pricing_formulas.shape[0]"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "9f2909c1-bc6a-443f-a077-84f6ce6b7ab5",
"metadata": {},
"outputs": [],
"source": [
"#variable retenu: [[\"id\",\"name\"]]"
]
},
{
"cell_type": "code",
"execution_count": 15,
@ -963,6 +993,16 @@
"product_packs.isna().sum()/product_packs.shape[0]"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "e0887a01-51ea-4034-84fe-dc4dbf2ad949",
"metadata": {},
"outputs": [],
"source": [
"#variable retenu:[[\"id\",\"name\"]]"
]
},
{
"cell_type": "code",
"execution_count": 18,
@ -1733,18 +1773,18 @@
},
{
"cell_type": "code",
"execution_count": 85,
"execution_count": 89,
"id": "f44f40d2-5304-4931-b7e6-fcc06b2657b6",
"metadata": {},
"outputs": [],
"source": [
"#Merge4 entre base3 et type_of_pricing_formulas\n",
"base4=base3.merge(product_packs, how='left', left_on= 'product_pack_id', right_on= 'id', suffixes = (\"_merge4\", \"_product_pack\"))"
"df_product_pricing=base3.merge(product_packs, how='left', left_on= 'product_pack_id', right_on= 'id', suffixes = (\"_merge4\", \"_product_pack\"))"
]
},
{
"cell_type": "code",
"execution_count": 87,
"execution_count": 90,
"id": "a28772c3-7bc1-46b4-acc8-1388dc60ec98",
"metadata": {},
"outputs": [
@ -1978,13 +2018,13 @@
"[5 rows x 41 columns]"
]
},
"execution_count": 87,
"execution_count": 90,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"base4.head(5)"
"df_product_pricing.head(5)"
]
},
{