diff --git a/promoção/promoção_EUD_ciclo07.ipynb b/promoção/promoção_EUD_ciclo07.ipynb index c93e0af..9d81c55 100644 --- a/promoção/promoção_EUD_ciclo07.ipynb +++ b/promoção/promoção_EUD_ciclo07.ipynb @@ -2,14 +2,14 @@ "cells": [ { "cell_type": "code", - "execution_count": 1, + "execution_count": 2, "metadata": {}, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ - "C:\\Users\\joao.herculano\\AppData\\Local\\Temp\\ipykernel_72404\\1229765338.py:39: UserWarning: pandas only supports SQLAlchemy connectable (engine/connection) or database string URI or sqlite3 DBAPI2 connection. Other DBAPI2 objects are not tested. Please consider using SQLAlchemy.\n", + "C:\\Users\\joao.herculano\\AppData\\Local\\Temp\\ipykernel_3428\\1229765338.py:39: UserWarning: pandas only supports SQLAlchemy connectable (engine/connection) or database string URI or sqlite3 DBAPI2 connection. Other DBAPI2 objects are not tested. Please consider using SQLAlchemy.\n", " df0 = pd.read_sql(query, conn)\n" ] } @@ -59,28 +59,28 @@ }, { "cell_type": "code", - "execution_count": 2, + "execution_count": 3, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "pdv\n", - "20997 27525\n", - "20992 26415\n", - "20969 26377\n", - "21007 13285\n", - "20995 12194\n", + "20997 27572\n", + "20992 26497\n", + "20969 26459\n", + "21007 13349\n", + "20995 12273\n", " ... \n", - "23156 1969\n", - "24253 1334\n", - "24254 1331\n", - "24268 1175\n", - "24258 941\n", + "23156 1978\n", + "24253 1414\n", + "24254 1362\n", + "24268 1246\n", + "24258 1008\n", "Name: count, Length: 80, dtype: int64" ] }, - "execution_count": 2, + "execution_count": 3, "metadata": {}, "output_type": "execute_result" } @@ -91,14 +91,14 @@ }, { "cell_type": "code", - "execution_count": 3, + "execution_count": 4, "metadata": {}, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ - "C:\\Users\\joao.herculano\\AppData\\Local\\Temp\\ipykernel_72404\\1692316838.py:25: UserWarning: pandas only supports SQLAlchemy connectable (engine/connection) or database string URI or sqlite3 DBAPI2 connection. Other DBAPI2 objects are not tested. Please consider using SQLAlchemy.\n", + "C:\\Users\\joao.herculano\\AppData\\Local\\Temp\\ipykernel_3428\\1692316838.py:25: UserWarning: pandas only supports SQLAlchemy connectable (engine/connection) or database string URI or sqlite3 DBAPI2 connection. Other DBAPI2 objects are not tested. Please consider using SQLAlchemy.\n", " dfv0 = pd.read_sql(query_vendas, conn)\n" ] } @@ -135,7 +135,7 @@ }, { "cell_type": "code", - "execution_count": 4, + "execution_count": 5, "metadata": {}, "outputs": [], "source": [ @@ -144,7 +144,7 @@ }, { "cell_type": "code", - "execution_count": 5, + "execution_count": 6, "metadata": {}, "outputs": [ { @@ -178,42 +178,42 @@ " \n", " \n", " 0\n", - " 21278\n", - " 51244\n", - " QUASAR DES COL BLUE V4 100ml\n", - " 7.0\n", - " C202512\n", + " 20995\n", + " 57551\n", + " DEM EUD DES COL VELVET INSPIRE 4ml\n", + " 1.0\n", + " C202509\n", " \n", " \n", " 1\n", - " 20993\n", - " 49418\n", - " NSPA OL DES HID CPO QUIN/AMEN 200ml V3\n", - " 9.0\n", - " C202508\n", + " 24255\n", + " 53742\n", + " QDB CLEANSING OIL PRM 30ml\n", + " 0.0\n", + " C202510\n", " \n", " \n", " 2\n", - " 21375\n", - " 84385\n", - " MALBEC EDP SIGNATURE V3 90ml\n", + " 21277\n", + " 49010\n", + " CBEM SAB BARR L/MEL 2x80g V7\n", " 1.0\n", - " C202413\n", + " C202411\n", " \n", " \n", " 3\n", - " 12820\n", - " 87373\n", - " CBEM SAB BARRA BEIJINHO V3 2x80g\n", - " 0.0\n", + " 22541\n", + " 49929\n", + " GLAM KIT PINCEIS\n", + " 2.0\n", " C202414\n", " \n", " \n", " 4\n", - " 13427\n", - " 49766\n", - " UOMINI DES COL BLACK V6 100ml\n", - " 2.0\n", + " 12817\n", + " 48785\n", + " MALBEC DES BDY SPR 100ml V4 PCK\n", + " 12.0\n", " C202412\n", " \n", " \n", @@ -221,15 +221,15 @@ "" ], "text/plain": [ - " PDV SKU DESCRICAO VENDAS_CICLO Ciclo\n", - "0 21278 51244 QUASAR DES COL BLUE V4 100ml 7.0 C202512\n", - "1 20993 49418 NSPA OL DES HID CPO QUIN/AMEN 200ml V3 9.0 C202508\n", - "2 21375 84385 MALBEC EDP SIGNATURE V3 90ml 1.0 C202413\n", - "3 12820 87373 CBEM SAB BARRA BEIJINHO V3 2x80g 0.0 C202414\n", - "4 13427 49766 UOMINI DES COL BLACK V6 100ml 2.0 C202412" + " PDV SKU DESCRICAO VENDAS_CICLO Ciclo\n", + "0 20995 57551 DEM EUD DES COL VELVET INSPIRE 4ml 1.0 C202509\n", + "1 24255 53742 QDB CLEANSING OIL PRM 30ml 0.0 C202510\n", + "2 21277 49010 CBEM SAB BARR L/MEL 2x80g V7 1.0 C202411\n", + "3 22541 49929 GLAM KIT PINCEIS 2.0 C202414\n", + "4 12817 48785 MALBEC DES BDY SPR 100ml V4 PCK 12.0 C202412" ] }, - "execution_count": 5, + "execution_count": 6, "metadata": {}, "output_type": "execute_result" } @@ -240,7 +240,7 @@ }, { "cell_type": "code", - "execution_count": 6, + "execution_count": 7, "metadata": {}, "outputs": [ { @@ -438,7 +438,7 @@ "[5 rows x 23 columns]" ] }, - "execution_count": 6, + "execution_count": 7, "metadata": {}, "output_type": "execute_result" } @@ -469,7 +469,7 @@ }, { "cell_type": "code", - "execution_count": 7, + "execution_count": 8, "metadata": {}, "outputs": [], "source": [ @@ -487,7 +487,7 @@ }, { "cell_type": "code", - "execution_count": 8, + "execution_count": 9, "metadata": {}, "outputs": [], "source": [ @@ -508,7 +508,7 @@ }, { "cell_type": "code", - "execution_count": 9, + "execution_count": 10, "metadata": {}, "outputs": [], "source": [ @@ -549,7 +549,7 @@ }, { "cell_type": "code", - "execution_count": 10, + "execution_count": 11, "metadata": {}, "outputs": [ { @@ -567,7 +567,7 @@ }, { "cell_type": "code", - "execution_count": 11, + "execution_count": 12, "metadata": {}, "outputs": [ { @@ -578,7 +578,7 @@ " dtype='object')" ] }, - "execution_count": 11, + "execution_count": 12, "metadata": {}, "output_type": "execute_result" } @@ -589,7 +589,7 @@ }, { "cell_type": "code", - "execution_count": 12, + "execution_count": 13, "metadata": {}, "outputs": [], "source": [ @@ -606,7 +606,7 @@ }, { "cell_type": "code", - "execution_count": 13, + "execution_count": 14, "metadata": {}, "outputs": [ { @@ -647,7 +647,7 @@ "Name: count, dtype: int64" ] }, - "execution_count": 13, + "execution_count": 14, "metadata": {}, "output_type": "execute_result" } @@ -658,7 +658,7 @@ }, { "cell_type": "code", - "execution_count": 14, + "execution_count": 15, "metadata": {}, "outputs": [], "source": [ @@ -680,7 +680,7 @@ }, { "cell_type": "code", - "execution_count": 15, + "execution_count": 16, "metadata": {}, "outputs": [], "source": [ @@ -689,7 +689,7 @@ }, { "cell_type": "code", - "execution_count": 16, + "execution_count": 17, "metadata": {}, "outputs": [], "source": [ @@ -698,7 +698,7 @@ }, { "cell_type": "code", - "execution_count": 17, + "execution_count": 18, "metadata": {}, "outputs": [], "source": [ @@ -730,7 +730,7 @@ }, { "cell_type": "code", - "execution_count": 18, + "execution_count": 19, "metadata": {}, "outputs": [ { @@ -778,7 +778,7 @@ " 15\n", " C2025\n", " C202517\n", - " 35\n", + " 30\n", " \n", " \n", "\n", @@ -789,10 +789,10 @@ "2430 C202515 2025-10-08 2025-10-28 21 EUDORA 2025-10-08 15 \n", "\n", " ANO_CICLO CICLOMAIS2 dias_ate_inicio \n", - "2430 C2025 C202517 35 " + "2430 C2025 C202517 30 " ] }, - "execution_count": 18, + "execution_count": 19, "metadata": {}, "output_type": "execute_result" } @@ -803,7 +803,7 @@ }, { "cell_type": "code", - "execution_count": 19, + "execution_count": 20, "metadata": {}, "outputs": [], "source": [ @@ -812,7 +812,7 @@ }, { "cell_type": "code", - "execution_count": 20, + "execution_count": 21, "metadata": {}, "outputs": [], "source": [ @@ -821,13 +821,22 @@ }, { "cell_type": "code", - "execution_count": 21, + "execution_count": 24, "metadata": {}, "outputs": [], "source": [ "df_tabela = pd.read_excel(r\"C:\\Users\\joao.herculano\\GRUPO GINSENG\\Assistência Suprimentos - 2025\\SUPRIMENTOS\\DB_PROMOÇÕES\\EUDORA\\202515\\tabela promo\\Tabela-de-Promocao_C15-1755294384452.xlsx.xlsx\",skiprows=1)\n" ] }, + { + "cell_type": "code", + "execution_count": 25, + "metadata": {}, + "outputs": [], + "source": [ + "df_tabela = df_tabela[df_tabela['Cód. Combo'].isna()]" + ] + }, { "cell_type": "code", "execution_count": 22,