diff --git a/Lançamentos/Script_lançamento_EUD_v2.ipynb b/Lançamentos/Script_lançamento_EUD_v2.ipynb
index eecaaea..f52654e 100644
--- a/Lançamentos/Script_lançamento_EUD_v2.ipynb
+++ b/Lançamentos/Script_lançamento_EUD_v2.ipynb
@@ -88,17 +88,17 @@
" \n",
"
\n",
" \n",
- " | 2262 | \n",
- " C202511 | \n",
- " 2025-07-16 | \n",
- " 2025-08-05 | \n",
+ " 2304 | \n",
+ " C202512 | \n",
+ " 2025-08-06 | \n",
+ " 2025-08-26 | \n",
" 21 | \n",
" EUDORA | \n",
- " 2025-07-16 | \n",
- " 11 | \n",
+ " 2025-08-06 | \n",
+ " 12 | \n",
" C2025 | \n",
- " C202514 | \n",
- " 54 | \n",
+ " C202515 | \n",
+ " 62 | \n",
" 1 | \n",
"
\n",
" \n",
@@ -107,10 +107,10 @@
],
"text/plain": [
" Ciclo INICIO CICLO FIM CICLO DURAÇÃO MARCA Date NUM_CICLO \\\n",
- "2262 C202511 2025-07-16 2025-08-05 21 EUDORA 2025-07-16 11 \n",
+ "2304 C202512 2025-08-06 2025-08-26 21 EUDORA 2025-08-06 12 \n",
"\n",
" ANO_CICLO CICLOMAIS2 dias_ate_inicio match \n",
- "2262 C2025 C202514 54 1 "
+ "2304 C2025 C202515 62 1 "
]
},
"execution_count": 3,
@@ -263,7 +263,7 @@
"name": "stderr",
"output_type": "stream",
"text": [
- "C:\\Users\\joao.herculano\\AppData\\Local\\Temp\\ipykernel_61796\\3284054138.py:10: DtypeWarning: Columns (7) have mixed types. Specify dtype option on import or set low_memory=False.\n",
+ "C:\\Users\\joao.herculano\\AppData\\Local\\Temp\\ipykernel_27244\\3284054138.py:10: DtypeWarning: Columns (7) have mixed types. Specify dtype option on import or set low_memory=False.\n",
" df_draft = pd.concat([pd.read_csv(file) for file in csv_files], ignore_index=True)\n"
]
},
@@ -354,7 +354,7 @@
"name": "stderr",
"output_type": "stream",
"text": [
- "C:\\Users\\joao.herculano\\AppData\\Local\\Temp\\ipykernel_61796\\1463083786.py:24: DeprecationWarning: DataFrameGroupBy.apply operated on the grouping columns. This behavior is deprecated, and in a future version of pandas the grouping columns will be excluded from the operation. Either pass `include_groups=False` to exclude the groupings or explicitly select the grouping columns after groupby to silence this warning.\n",
+ "C:\\Users\\joao.herculano\\AppData\\Local\\Temp\\ipykernel_27244\\1463083786.py:24: DeprecationWarning: DataFrameGroupBy.apply operated on the grouping columns. This behavior is deprecated, and in a future version of pandas the grouping columns will be excluded from the operation. Either pass `include_groups=False` to exclude the groupings or explicitly select the grouping columns after groupby to silence this warning.\n",
" crescimento_por_pdv = df_draft.groupby('PDV').apply(calcular_crescimento)\n"
]
}
@@ -1264,10 +1264,10 @@
" 'Histórico de Vendas do Ciclo 202504',\n",
" 'Histórico de Vendas do Ciclo 202505',\n",
" 'Histórico de Vendas do Ciclo 202506',\n",
- " 'Histórico de Vendas do Ciclo Atual',\n",
- " 'Histórico de Vendas do Ciclo 202507', 'Vendas Ciclo Lançamento',\n",
- " 'Pico Vendas Similar Ultimos 6 ciclos', 'MEDIANA DO HISTÓRICO',\n",
- " 'PDVDEPARA.Practico', 'Código', 'PV GINSENG'],\n",
+ " 'Histórico de Vendas do Ciclo Atual', 'Projeção Próximo Ciclo',\n",
+ " 'Projeção Próximo Ciclo + 1', 'Histórico de Vendas do Ciclo 202507',\n",
+ " 'Vendas Ciclo Lançamento', 'Pico Vendas Similar Ultimos 6 ciclos',\n",
+ " 'MEDIANA DO HISTÓRICO', 'PDVDEPARA.Practico', 'Código', 'PV GINSENG'],\n",
" dtype='object')"
]
},
@@ -1280,7 +1280,7 @@
"\n",
"df_final.drop(columns=['status', 'Classe', 'SKU', 'Subcategoria', 'Lançamento',\n",
" 'Desativação','Dias sem venda',\n",
- " 'Projeção Próximo Ciclo', 'Projeção Próximo Ciclo + 1',\n",
+ " #'Projeção Próximo Ciclo', 'Projeção Próximo Ciclo + 1',\n",
" 'Promoção Próximo Ciclo', 'Promoção Próximo Ciclo + 1', 'Estoque Atual',\n",
" 'Estoque em Transito', 'Pedido Pendente',\n",
" 'Compra inteligente semanal/Sugestão de compra',\n",
@@ -1346,6 +1346,7 @@
" 'MECANICA REVENDEDOR', 'TIPO DE PRODUTO', 'MATCH', 'PDV', 'CANAL',\n",
" 'DESCRIÇÃO PDV', 'PDV DESC', 'UF', 'ANALISTA', 'SUPERVISOR',\n",
" 'DESCRIÇÃO', 'C-4', 'C-3', 'C-2', 'C-1', 'VENDAS CICLO ATUAL',\n",
+ " 'PROJEÇÃO PRÓXIMO CICLO', 'PROJEÇÃO PRÓXIMO CICLO + 1',\n",
" 'VENDAS CICLO LANÇAMENTO', 'PICO VENDAS SIMILAR ULTIMOS 6 CICLOS',\n",
" 'MEDIANA DO HISTÓRICO', 'PDVDEPARA.PRACTICO', 'CÓDIGO', 'PV GINSENG'],\n",
" dtype='object')"
@@ -1366,12 +1367,12 @@
},
{
"cell_type": "code",
- "execution_count": null,
+ "execution_count": 45,
"id": "5abd4bae",
"metadata": {},
"outputs": [],
"source": [
- "df_final = df_final.drop(columns=['DESCRIÇÃO','MEDIANA DO HISTÓRICO','SKU'])"
+ "df_final = df_final.drop(columns=['DESCRIÇÃO','MEDIANA DO HISTÓRICO'])"
]
},
{
@@ -1383,7 +1384,7 @@
{
"data": {
"text/plain": [
- "(170, 32)"
+ "(170, 34)"
]
},
"execution_count": 46,
@@ -1398,6 +1399,36 @@
{
"cell_type": "code",
"execution_count": 47,
+ "id": "10975651",
+ "metadata": {},
+ "outputs": [
+ {
+ "data": {
+ "text/plain": [
+ "Index(['PRODUTO LANÇAMENTO', 'DESCRIÇÃO DO LANÇAMENTO', 'PRODUTO SIMILAR',\n",
+ " 'DESCRIÇÃO SIMILAR', 'CICLO SIMILAR', 'FOCO', 'IAF', 'CATEGORIA',\n",
+ " 'MARCA', '% CONSUMIDOR', 'MECANICA CONSUMIDOR', '% REVENDEDOR',\n",
+ " 'MECANICA REVENDEDOR', 'TIPO DE PRODUTO', 'MATCH', 'PDV', 'CANAL',\n",
+ " 'DESCRIÇÃO PDV', 'PDV DESC', 'UF', 'ANALISTA', 'SUPERVISOR', 'C-4',\n",
+ " 'C-3', 'C-2', 'C-1', 'VENDAS CICLO ATUAL', 'PROJEÇÃO PRÓXIMO CICLO',\n",
+ " 'PROJEÇÃO PRÓXIMO CICLO + 1', 'VENDAS CICLO LANÇAMENTO',\n",
+ " 'PICO VENDAS SIMILAR ULTIMOS 6 CICLOS', 'PDVDEPARA.PRACTICO', 'CÓDIGO',\n",
+ " 'PV GINSENG'],\n",
+ " dtype='object')"
+ ]
+ },
+ "execution_count": 47,
+ "metadata": {},
+ "output_type": "execute_result"
+ }
+ ],
+ "source": [
+ "df_final.columns"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 48,
"id": "25cbff26",
"metadata": {},
"outputs": [],
@@ -1431,12 +1462,14 @@
" 'C-1',\n",
" 'VENDAS CICLO ATUAL',\n",
" 'PICO VENDAS SIMILAR ULTIMOS 6 CICLOS',\n",
- " 'PV GINSENG'])\n"
+ " 'PV GINSENG',\n",
+ " 'PROJEÇÃO PRÓXIMO CICLO',\n",
+ " 'PROJEÇÃO PRÓXIMO CICLO + 1'])\n"
]
},
{
"cell_type": "code",
- "execution_count": 48,
+ "execution_count": 49,
"id": "a3e80cb4",
"metadata": {},
"outputs": [],
@@ -1448,13 +1481,29 @@
},
{
"cell_type": "code",
- "execution_count": 49,
+ "execution_count": 50,
"id": "2df3e2e9",
"metadata": {},
"outputs": [],
"source": [
"df_final.to_excel(r'C:\\Users\\joao.herculano\\Documents\\sugestEUD.xlsx',index=False)"
]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": null,
+ "id": "7d781cb5",
+ "metadata": {},
+ "outputs": [],
+ "source": []
+ },
+ {
+ "cell_type": "code",
+ "execution_count": null,
+ "id": "a40ff37f",
+ "metadata": {},
+ "outputs": [],
+ "source": []
}
],
"metadata": {