mudanças para excluir combos EUD da promo
This commit is contained in:
parent
cb03d9e53b
commit
15fa59651c
@ -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 @@
|
||||
" <tbody>\n",
|
||||
" <tr>\n",
|
||||
" <th>0</th>\n",
|
||||
" <td>21278</td>\n",
|
||||
" <td>51244</td>\n",
|
||||
" <td>QUASAR DES COL BLUE V4 100ml</td>\n",
|
||||
" <td>7.0</td>\n",
|
||||
" <td>C202512</td>\n",
|
||||
" <td>20995</td>\n",
|
||||
" <td>57551</td>\n",
|
||||
" <td>DEM EUD DES COL VELVET INSPIRE 4ml</td>\n",
|
||||
" <td>1.0</td>\n",
|
||||
" <td>C202509</td>\n",
|
||||
" </tr>\n",
|
||||
" <tr>\n",
|
||||
" <th>1</th>\n",
|
||||
" <td>20993</td>\n",
|
||||
" <td>49418</td>\n",
|
||||
" <td>NSPA OL DES HID CPO QUIN/AMEN 200ml V3</td>\n",
|
||||
" <td>9.0</td>\n",
|
||||
" <td>C202508</td>\n",
|
||||
" <td>24255</td>\n",
|
||||
" <td>53742</td>\n",
|
||||
" <td>QDB CLEANSING OIL PRM 30ml</td>\n",
|
||||
" <td>0.0</td>\n",
|
||||
" <td>C202510</td>\n",
|
||||
" </tr>\n",
|
||||
" <tr>\n",
|
||||
" <th>2</th>\n",
|
||||
" <td>21375</td>\n",
|
||||
" <td>84385</td>\n",
|
||||
" <td>MALBEC EDP SIGNATURE V3 90ml</td>\n",
|
||||
" <td>21277</td>\n",
|
||||
" <td>49010</td>\n",
|
||||
" <td>CBEM SAB BARR L/MEL 2x80g V7</td>\n",
|
||||
" <td>1.0</td>\n",
|
||||
" <td>C202413</td>\n",
|
||||
" <td>C202411</td>\n",
|
||||
" </tr>\n",
|
||||
" <tr>\n",
|
||||
" <th>3</th>\n",
|
||||
" <td>12820</td>\n",
|
||||
" <td>87373</td>\n",
|
||||
" <td>CBEM SAB BARRA BEIJINHO V3 2x80g</td>\n",
|
||||
" <td>0.0</td>\n",
|
||||
" <td>22541</td>\n",
|
||||
" <td>49929</td>\n",
|
||||
" <td>GLAM KIT PINCEIS</td>\n",
|
||||
" <td>2.0</td>\n",
|
||||
" <td>C202414</td>\n",
|
||||
" </tr>\n",
|
||||
" <tr>\n",
|
||||
" <th>4</th>\n",
|
||||
" <td>13427</td>\n",
|
||||
" <td>49766</td>\n",
|
||||
" <td>UOMINI DES COL BLACK V6 100ml</td>\n",
|
||||
" <td>2.0</td>\n",
|
||||
" <td>12817</td>\n",
|
||||
" <td>48785</td>\n",
|
||||
" <td>MALBEC DES BDY SPR 100ml V4 PCK</td>\n",
|
||||
" <td>12.0</td>\n",
|
||||
" <td>C202412</td>\n",
|
||||
" </tr>\n",
|
||||
" </tbody>\n",
|
||||
@ -221,15 +221,15 @@
|
||||
"</div>"
|
||||
],
|
||||
"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 @@
|
||||
" <td>15</td>\n",
|
||||
" <td>C2025</td>\n",
|
||||
" <td>C202517</td>\n",
|
||||
" <td>35</td>\n",
|
||||
" <td>30</td>\n",
|
||||
" </tr>\n",
|
||||
" </tbody>\n",
|
||||
"</table>\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,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user