Análisis de los 25 retailers más grandes de Estados Unidos
10
Sam's Club
56828
11
Apple incl. Online
37664
12
Best Buy
34980
13
Publix
34408
14
Rite Aid
27486
15
Ahold
26903
16
Macy's
26028
17
TJX
25012
18
Aldi
24402
19
Dollar General
22234
I. Preguntas del negocio
0
Walmart US
658119
1
Kroger
115037
2
Costco
90048
3
Home Depot
83976
4
Walgreen Boots
78924
5
CVS incl. Target
77792
6
Amazon
71687
7
Target
71208
8
Lowe's
60311
9
Albertsons
56829
/shared-libs/python3.7/py/lib/python3.7/site-packages/seaborn/_decorators.py:43: FutureWarning: Pass the following variables as keyword args: x, y. From version 0.12, the only valid positional argument will be `data`, and passing other arguments without an explicit keyword will result in an error or misinterpretation.
FutureWarning
findfont: Font family ['verdana'] not found. Falling back to DejaVu Sans.
findfont: Font family ['verdana'] not found. Falling back to DejaVu Sans.
Después de ordenar el dataset por ventas de mayor a menor y realizar su respectivo gráfico, podemos concluir que la compañía dominante es Walmart.
Para calcular el promedio de ventas del resto de las compañías (sin tener en cuenta a Walmart) utilizamos la técnica de slicing para agrupar únicamente de la fila 1 a la 24 y a esto le aplicamos el método mean(). También realizaremos un gráfico de barras para visualizar como es el escenario sin incluir Walmart.
/shared-libs/python3.7/py/lib/python3.7/site-packages/seaborn/_decorators.py:43: FutureWarning: Pass the following variables as keyword args: x, y. From version 0.12, the only valid positional argument will be `data`, and passing other arguments without an explicit keyword will result in an error or misinterpretation.
FutureWarning
Sin incluir Walmart podemos observar que el nivel de ventas tiende a ser más parejo y es más razonable calcular un promedio de las mismas.
47907.217391304344
Este análisis lo realizaremos dibujando un histograma de frecuencias ya que este tipo de gráfico nos ayudará a visualizar como se distribuyen los datos. En este caso tomaremos como variables las ventas y el número de compañías.
Al igual que el punto anterior dibujaremos un histograma de frecuencias. Tomaremos como variables el número de tiendas y el número de compañías.
Para identificar el rango que existe entre las ventas primero hallaremos el valor máximo y mínimo así:
658119 16592
Finalmente el rango lo calculamos mediante la diferencia entre el valor máximo y el valor mínimo.
641527
Podemos concluir que las ventas estuvieron entre 16952 (USD Millones) y 658119 ( USD Millones) teniendo un rango de 641527 ( USD Millones).
20
Dollar Tree
21464
19
Dollar General
22234
5
CVS incl. Target
77792
4
Walgreen Boots
78924
0
Walmart US
658119
14
Rite Aid
27486
1
Kroger
115037
17
TJX
25012
9
Albertsons
56829
18
Aldi
24402
/shared-libs/python3.7/py/lib/python3.7/site-packages/seaborn/_decorators.py:43: FutureWarning: Pass the following variables as keyword args: x, y. From version 0.12, the only valid positional argument will be `data`, and passing other arguments without an explicit keyword will result in an error or misinterpretation.
FutureWarning
/shared-libs/python3.7/py/lib/python3.7/site-packages/seaborn/_decorators.py:43: FutureWarning: Pass the following variables as keyword args: x, y. From version 0.12, the only valid positional argument will be `data`, and passing other arguments without an explicit keyword will result in an error or misinterpretation.
FutureWarning
10
Sam's Club
Warehouse Clubs
11
Apple incl. Online
nan
12
Best Buy
Electronics
13
Publix
Grocery
14
Rite Aid
Drug Stores
15
Ahold
Grocery
16
Macy's
Department Stores
17
TJX
Apparel
18
Aldi
Grocery
19
Dollar General
Dollar Stores
8
Supercenters
745919
6
Grocery
297164
3
Drug Stores
184202
7
Home Improvement
144287
9
Warehouse Club
90048
4
Electronic/Mail Order
71687
10
Warehouse Clubs
56828
1
Department Stores
45088
2
Dollar Stores
43698
5
Electronics
34980
0
Apparel
25012
/shared-libs/python3.7/py/lib/python3.7/site-packages/seaborn/_decorators.py:43: FutureWarning: Pass the following variables as keyword args: x, y. From version 0.12, the only valid positional argument will be `data`, and passing other arguments without an explicit keyword will result in an error or misinterpretation.
FutureWarning
2
Costco
90048
10
Sam's Club
56828
24
Meijer
16592
21
HEB
21384
0
Walmart US
658119
3
Home Depot
83976
7
Target
71208
15
Ahold
26903
8
Lowe's
60311
16
Macy's
26028
/shared-libs/python3.7/py/lib/python3.7/site-packages/seaborn/_decorators.py:43: FutureWarning: Pass the following variables as keyword args: x, y. From version 0.12, the only valid positional argument will be `data`, and passing other arguments without an explicit keyword will result in an error or misinterpretation.
FutureWarning
0
Walmart US
658119
1
Kroger
115037
2
Costco
90048
3
Home Depot
83976
4
Walgreen Boots
78924
5
CVS incl. Target
77792
6
Amazon
71687
7
Target
71208
8
Lowe's
60311
9
Albertsons
56829
6
Amazon
71687
11
Apple incl. Online
37664