Visualization with Bar Plots
Learn to plot, interpret, and style bar plots for data analysis.
We'll cover the following...
Overview
Bar plots, also called categorical estimate plots, are where we compute the mean and confidence interval using bootstrapping techniques for each unique group within the category. The count plots and bar plots have many similarities. Count plots count the number of instances for each category, whereas bar plots compute each group’s mean and confidence intervals.
Plotting bar plots
Let’s begin by importing the required libraries and the titanic
dataset stored in the titanic_df
DataFrame. Typically, in a bar plot, we have one categorical variable and one numerical variable. For example, using the sns.barplot()
function, we can categorize the ...