Data Scientists use displays to visualize data. You’ve probably seen some of these charts, graphs and plots yourselves! When it comes to displaying Categorical Data, there are two displays that are especially useful.
-
Bar charts show the count or percentage of rows in each category.
-
Bar charts provide a visual representation of the frequency of values in a categorical column.
-
Bar charts have a bar for every category in a column.
-
The more rows in a category, the taller the bar.
-
Bars in a bar chart can be show in any order, without changing the meaning of the chart. However, bars are usually shown in some sensible order (bars for the number of orders for different t-shirt sizes might be presented in order of smallest to largest shirt).
-
-
Pie charts show the percentage of rows in each category.
-
Pie charts provide a visual representation of the relative frequency of values in a categorical column.
-
Pie charts have a slice for every category in a column.
-
The more rows in a category, the larger the slice.
-
Slices in a pie chart can be shown in any order, without changing the meaning of the chart. However, slices are usually shown in some sensible order (e.g. slices might be shown in alphabetical order or from the smallest to largest slice).
-
These materials were developed partly through support of the National Science Foundation, (awards 1042210, 1535276, 1648684, 1738598, 2031479, and 1501927).
Bootstrap by the Bootstrap Community is licensed under a Creative Commons 4.0 Unported License. This license does not grant permission to run training or professional development. Offering training or professional development with materials substantially derived from Bootstrap must be approved in writing by a Bootstrap Director. Permissions beyond the scope of this license, such as to run training, may be available by contacting contact@BootstrapWorld.org.