20

Cream of Wheat (Quick)

N

21

Crispix

K

22

Crispy Wheat & Raisins

G

23

Double Chex

R

24

Froot Loops

K

25

Frosted Flakes

K

26

Frosted Mini-Wheats

K

27

Fruit & Fibre Dates; Walnuts; and Oats

P

28

Fruitful Bran

K

29

Fruity Pebbles

P

0

100% Bran

N

1

100% Natural Bran

Q

2

All-Bran

K

3

All-Bran with Extra Fiber

K

4

Almond Delight

R

5

Apple Cinnamon Cheerios

G

6

Apple Jacks

K

7

Basic 4

G

8

Bran Chex

R

9

Bran Flakes

P

```
<class 'pandas.core.frame.DataFrame'>
RangeIndex: 77 entries, 0 to 76
Data columns (total 5 columns):
# Column Non-Null Count Dtype
--- ------ -------------- -----
0 name 77 non-null object
1 mfr 77 non-null object
2 sugars 77 non-null int64
3 carbo 77 non-null float64
4 rating 77 non-null float64
dtypes: float64(2), int64(1), object(2)
memory usage: 3.1+ KB
```

```
name mfr sugars carbo rating
57 Quaker Oatmeal Q -1 -1.0 50.828392
name mfr sugars carbo rating
57 Quaker Oatmeal Q -1 -1.0 50.828392
```

```
76
76
```

0

100% Bran

6

1

100% Natural Bran

8

2

All-Bran

5

3

All-Bran with Extra Fiber

0

4

Almond Delight

8

5

Apple Cinnamon Cheerios

10

6

Apple Jacks

14

7

Basic 4

8

8

Bran Chex

6

9

Bran Flakes

5

3

All-Bran with Extra Fiber

K

```
Cluster centers for sugars clusters:
[[ 1.84 ]
[ 6.84 ]
[12.03846154]]
```

0

100% Bran

N

1

100% Natural Bran

Q

2

All-Bran

K

3

All-Bran with Extra Fiber

K

4

Almond Delight

R

0

100% Bran

N

1

100% Natural Bran

Q

2

All-Bran

K

3

All-Bran with Extra Fiber

K

4

Almond Delight

R

5

Apple Cinnamon Cheerios

G

6

Apple Jacks

K

7

Basic 4

G

8

Bran Chex

R

9

Bran Flakes

P

```
The cereals are distributed evenly among the 3 levels
```

5

Apple Cinnamon Cheerios

G

6

Apple Jacks

K

10

Cap'n'Crunch

Q

14

Cocoa Puffs

G

17

Corn Pops

K

18

Count Chocula

G

22

Crispy Wheat & Raisins

G

24

Froot Loops

K

25

Frosted Flakes

K

27

Fruit & Fibre Dates; Walnuts; and Oats

P

3

All-Bran with Extra Fiber

K

11

Cheerios

G

15

Corn Chex

R

16

Corn Flakes

K

20

Cream of Wheat (Quick)

N

21

Crispix

K

33

Grape-Nuts

P

34

Great Grains Pecan

P

40

Kix

G

50

Nutri-grain Wheat

K

```
The data instance and sugar cluster for Fruity Pebbles is 29 2
Name: sugars_clusters, dtype: int32
```

```
Clusters centers for carbo clusters:
[[19.52173913]
[ 8.8 ]
[13.86842105]]
```

0

100% Bran

N

1

100% Natural Bran

Q

2

All-Bran

K

3

All-Bran with Extra Fiber

K

4

Almond Delight

R

5

Apple Cinnamon Cheerios

G

6

Apple Jacks

K

7

Basic 4

G

8

Bran Chex

R

9

Bran Flakes

P

0

100% Bran

N

1

100% Natural Bran

Q

2

All-Bran

K

3

All-Bran with Extra Fiber

K

4

Almond Delight

R

5

Apple Cinnamon Cheerios

G

6

Apple Jacks

K

7

Basic 4

G

8

Bran Chex

R

9

Bran Flakes

P

4

Almond Delight

R

8

Bran Chex

R

9

Bran Flakes

P

10

Cap'n'Crunch

Q

12

Cinnamon Toast Crunch

G

13

Clusters

G

14

Cocoa Puffs

G

17

Corn Pops

K

18

Count Chocula

G

25

Frosted Flakes

K

7

Basic 4

G

11

Cheerios

G

15

Corn Chex

R

16

Corn Flakes

K

20

Cream of Wheat (Quick)

N

21

Crispix

K

23

Double Chex

R

33

Grape-Nuts

P

38

Just Right Crunchy Nuggets

K

39

Just Right Fruit & Nut

K